26 lines
970 B
TypeScript
26 lines
970 B
TypeScript
|
import { PolymorphicComponent } from '../utils/PolymorphicComponent';
|
||
|
import { ModalTypeMap } from './Modal.types';
|
||
|
/**
|
||
|
* Modal is a lower-level construct that is leveraged by the following components:
|
||
|
*
|
||
|
* * [Dialog](https://mui.com/material-ui/api/dialog/)
|
||
|
* * [Drawer](https://mui.com/material-ui/api/drawer/)
|
||
|
* * [Menu](https://mui.com/material-ui/api/menu/)
|
||
|
* * [Popover](https://mui.com/material-ui/api/popover/)
|
||
|
*
|
||
|
* If you are creating a modal dialog, you probably want to use the [Dialog](https://mui.com/material-ui/api/dialog/) component
|
||
|
* rather than directly using Modal.
|
||
|
*
|
||
|
* This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
|
||
|
*
|
||
|
* Demos:
|
||
|
*
|
||
|
* - [Modal](https://mui.com/base-ui/react-modal/)
|
||
|
*
|
||
|
* API:
|
||
|
*
|
||
|
* - [Modal API](https://mui.com/base-ui/react-modal/components-api/#modal)
|
||
|
*/
|
||
|
declare const Modal: PolymorphicComponent<ModalTypeMap<{}, "div">>;
|
||
|
export { Modal };
|