43 lines
No EOL
1.6 KiB
TypeScript
43 lines
No EOL
1.6 KiB
TypeScript
import * as React from 'react';
|
|
import { SxProps } from '@mui/system';
|
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
import { Theme } from "../styles/index.js";
|
|
import { TypographyTypeMap } from "../Typography/index.js";
|
|
import { DialogTitleClasses } from "./dialogTitleClasses.js";
|
|
export interface DialogTitleOwnProps extends Omit<TypographyTypeMap['props'], 'classes'> {
|
|
/**
|
|
* The content of the component.
|
|
*/
|
|
children?: React.ReactNode;
|
|
/**
|
|
* Override or extend the styles applied to the component.
|
|
*/
|
|
classes?: Partial<DialogTitleClasses>;
|
|
/**
|
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
*/
|
|
sx?: SxProps<Theme>;
|
|
}
|
|
export interface DialogTitleTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = TypographyTypeMap['defaultComponent']> {
|
|
props: AdditionalProps & DialogTitleOwnProps;
|
|
defaultComponent: RootComponent;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Demos:
|
|
*
|
|
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
|
*
|
|
* API:
|
|
*
|
|
* - [DialogTitle API](https://mui.com/material-ui/api/dialog-title/)
|
|
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
*/
|
|
declare const DialogTitle: OverridableComponent<DialogTitleTypeMap>;
|
|
export type DialogTitleProps<RootComponent extends React.ElementType = DialogTitleTypeMap['defaultComponent'], AdditionalProps = {
|
|
component?: React.ElementType;
|
|
}> = OverrideProps<DialogTitleTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
component?: React.ElementType;
|
|
};
|
|
export default DialogTitle; |