UNPKG

1.55 kBTypeScriptView Raw
1import * as React from 'react';
2import { SxProps } from '@mui/system';
3import { TypographyTypeMap } from '../Typography';
4import { OverrideProps, OverridableComponent } from '../OverridableComponent';
5import { Theme } from '../styles';
6import { DialogContentTextClasses } from './dialogContentTextClasses';
7
8export interface DialogContentTextOwnProps extends Omit<TypographyTypeMap['props'], 'classes'> {
9 /**
10 * Override or extend the styles applied to the component.
11 */
12 classes?: Partial<DialogContentTextClasses>;
13 /**
14 * The system prop that allows defining system overrides as well as additional CSS styles.
15 */
16 sx?: SxProps<Theme>;
17}
18
19export interface DialogContentTextTypeMap<
20 AdditionalProps = {},
21 RootComponent extends React.ElementType = TypographyTypeMap['defaultComponent'],
22> {
23 props: AdditionalProps & DialogContentTextOwnProps;
24 defaultComponent: RootComponent;
25}
26
27/**
28 *
29 * Demos:
30 *
31 * - [Dialog](https://mui.com/material-ui/react-dialog/)
32 *
33 * API:
34 *
35 * - [DialogContentText API](https://mui.com/material-ui/api/dialog-content-text/)
36 * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
37 */
38declare const DialogContentText: OverridableComponent<DialogContentTextTypeMap>;
39
40export type DialogContentTextProps<
41 RootComponent extends React.ElementType = DialogContentTextTypeMap['defaultComponent'],
42 AdditionalProps = {},
43> = OverrideProps<DialogContentTextTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
44 component?: React.ElementType;
45};
46
47export default DialogContentText;