@material-ui/core
Version:
React components that implement Google's Material Design.
36 lines (31 loc) • 997 B
TypeScript
import * as React from 'react';
import { StandardProps } from '..';
import { PaperProps } from '../Paper';
import { ModalProps } from '../Modal';
import { TransitionHandlerProps, TransitionProps } from '../transitions/transition';
export interface DialogProps
extends StandardProps<ModalProps & Partial<TransitionHandlerProps>, DialogClassKey, 'children'> {
children?: React.ReactNode;
fullScreen?: boolean;
fullWidth?: boolean;
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | false;
PaperProps?: Partial<PaperProps>;
scroll?: 'body' | 'paper';
TransitionComponent?: React.ReactType;
transitionDuration?: TransitionProps['timeout'];
TransitionProps?: TransitionProps;
}
export type DialogClassKey =
| 'root'
| 'scrollPaper'
| 'scrollBody'
| 'paper'
| 'paperScrollPaper'
| 'paperScrollBody'
| 'paperWidthXs'
| 'paperWidthSm'
| 'paperWidthMd'
| 'paperFullWidth'
| 'paperFullScreen';
declare const Dialog: React.ComponentType<DialogProps>;
export default Dialog;