UNPKG

968 BTypeScriptView Raw
1import { PolymorphicComponent } from '../utils/PolymorphicComponent';
2import { ModalTypeMap } from './Modal.types';
3/**
4 * Modal is a lower-level construct that is leveraged by the following components:
5 *
6 * * [Dialog](https://mui.com/material-ui/api/dialog/)
7 * * [Drawer](https://mui.com/material-ui/api/drawer/)
8 * * [Menu](https://mui.com/material-ui/api/menu/)
9 * * [Popover](https://mui.com/material-ui/api/popover/)
10 *
11 * If you are creating a modal dialog, you probably want to use the [Dialog](https://mui.com/material-ui/api/dialog/) component
12 * rather than directly using Modal.
13 *
14 * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
15 *
16 * Demos:
17 *
18 * - [Modal](https://mui.com/base/react-modal/)
19 *
20 * API:
21 *
22 * - [Modal API](https://mui.com/base/react-modal/components-api/#modal)
23 */
24declare const Modal: PolymorphicComponent<ModalTypeMap<{}, "div">>;
25export default Modal;