Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
208 lines
7.5 KiB
JSON
208 lines
7.5 KiB
JSON
{
|
|
"props": {
|
|
"open": { "type": { "name": "bool" }, "required": true },
|
|
"aria-describedby": { "type": { "name": "string" } },
|
|
"aria-labelledby": { "type": { "name": "string" } },
|
|
"aria-modal": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'false'<br>| 'true'<br>| bool"
|
|
},
|
|
"default": "true"
|
|
},
|
|
"BackdropComponent": {
|
|
"type": { "name": "elementType" },
|
|
"default": "styled(Backdrop, {\n name: 'MuiModal',\n slot: 'Backdrop',\n})({\n zIndex: -1,\n})",
|
|
"deprecated": true,
|
|
"deprecationInfo": "Use <code>slots.backdrop</code> instead. While this prop currently works, it will be removed in the next major version."
|
|
},
|
|
"children": { "type": { "name": "node" } },
|
|
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
|
|
"disableEscapeKeyDown": { "type": { "name": "bool" }, "default": "false" },
|
|
"fullScreen": { "type": { "name": "bool" }, "default": "false" },
|
|
"fullWidth": { "type": { "name": "bool" }, "default": "false" },
|
|
"maxWidth": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'xs'<br>| 'sm'<br>| 'md'<br>| 'lg'<br>| 'xl'<br>| false<br>| string"
|
|
},
|
|
"default": "'sm'"
|
|
},
|
|
"onClose": {
|
|
"type": { "name": "func" },
|
|
"signature": {
|
|
"type": "function(event: object, reason: string) => void",
|
|
"describedArgs": ["event", "reason"]
|
|
}
|
|
},
|
|
"PaperComponent": { "type": { "name": "elementType" }, "default": "Paper" },
|
|
"PaperProps": {
|
|
"type": { "name": "object" },
|
|
"default": "{}",
|
|
"deprecated": true,
|
|
"deprecationInfo": "Use <code>slotProps.paper</code> instead. This prop will be removed in a future major release. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
|
},
|
|
"scroll": {
|
|
"type": { "name": "enum", "description": "'body'<br>| 'paper'" },
|
|
"default": "'paper'"
|
|
},
|
|
"slotProps": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ backdrop?: func<br>| object, container?: func<br>| object, paper?: func<br>| object, root?: func<br>| object, transition?: func<br>| object }"
|
|
},
|
|
"default": "{}"
|
|
},
|
|
"slots": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ backdrop?: elementType, container?: elementType, paper?: elementType, root?: elementType, transition?: elementType }"
|
|
},
|
|
"default": "{}"
|
|
},
|
|
"sx": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
|
|
},
|
|
"additionalInfo": { "sx": true }
|
|
},
|
|
"TransitionComponent": {
|
|
"type": { "name": "elementType" },
|
|
"default": "Fade",
|
|
"deprecated": true,
|
|
"deprecationInfo": "Use <code>slots.transition</code> instead. This prop will be removed in a future major release. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
|
},
|
|
"transitionDuration": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "number<br>| { appear?: number, enter?: number, exit?: number }"
|
|
},
|
|
"default": "{\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen,\n}"
|
|
},
|
|
"TransitionProps": {
|
|
"type": { "name": "object" },
|
|
"deprecated": true,
|
|
"deprecationInfo": "Use <code>slotProps.transition</code> instead. This prop will be removed in a future major release. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
|
}
|
|
},
|
|
"name": "Dialog",
|
|
"imports": [
|
|
"import Dialog from '@mui/material/Dialog';",
|
|
"import { Dialog } from '@mui/material';"
|
|
],
|
|
"slots": [
|
|
{
|
|
"name": "transition",
|
|
"description": "The component that renders the transition.\n[Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.",
|
|
"default": "Collapse",
|
|
"class": null
|
|
},
|
|
{
|
|
"name": "paper",
|
|
"description": "The component that renders the paper.",
|
|
"default": "Paper",
|
|
"class": "MuiDialog-paper"
|
|
},
|
|
{
|
|
"name": "container",
|
|
"description": "The component that renders the container.",
|
|
"class": "MuiDialog-container"
|
|
},
|
|
{
|
|
"name": "backdrop",
|
|
"description": "The component that renders the backdrop.",
|
|
"class": null
|
|
},
|
|
{
|
|
"name": "root",
|
|
"description": "The component that renders the root.",
|
|
"class": "MuiDialog-root"
|
|
}
|
|
],
|
|
"classes": [
|
|
{
|
|
"key": "paperFullScreen",
|
|
"className": "MuiDialog-paperFullScreen",
|
|
"description": "Styles applied to the Paper component if `fullScreen={true}`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "paperFullWidth",
|
|
"className": "MuiDialog-paperFullWidth",
|
|
"description": "Styles applied to the Paper component if `fullWidth={true}`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "paperScrollBody",
|
|
"className": "MuiDialog-paperScrollBody",
|
|
"description": "Styles applied to the Paper component if `scroll=\"body\"`.",
|
|
"isGlobal": false,
|
|
"isDeprecated": true
|
|
},
|
|
{
|
|
"key": "paperScrollPaper",
|
|
"className": "MuiDialog-paperScrollPaper",
|
|
"description": "Styles applied to the Paper component if `scroll=\"paper\"`.",
|
|
"isGlobal": false,
|
|
"isDeprecated": true
|
|
},
|
|
{
|
|
"key": "paperWidthFalse",
|
|
"className": "MuiDialog-paperWidthFalse",
|
|
"description": "Styles applied to the Paper component if `maxWidth=false`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "paperWidthLg",
|
|
"className": "MuiDialog-paperWidthLg",
|
|
"description": "Styles applied to the Paper component if `maxWidth=\"lg\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "paperWidthMd",
|
|
"className": "MuiDialog-paperWidthMd",
|
|
"description": "Styles applied to the Paper component if `maxWidth=\"md\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "paperWidthSm",
|
|
"className": "MuiDialog-paperWidthSm",
|
|
"description": "Styles applied to the Paper component if `maxWidth=\"sm\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "paperWidthXl",
|
|
"className": "MuiDialog-paperWidthXl",
|
|
"description": "Styles applied to the Paper component if `maxWidth=\"xl\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "paperWidthXs",
|
|
"className": "MuiDialog-paperWidthXs",
|
|
"description": "Styles applied to the Paper component if `maxWidth=\"xs\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "scrollBody",
|
|
"className": "MuiDialog-scrollBody",
|
|
"description": "Styles applied to the container element if `scroll=\"body\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "scrollPaper",
|
|
"className": "MuiDialog-scrollPaper",
|
|
"description": "Styles applied to the container element if `scroll=\"paper\"`.",
|
|
"isGlobal": false
|
|
}
|
|
],
|
|
"spread": true,
|
|
"themeDefaultProps": true,
|
|
"muiName": "MuiDialog",
|
|
"forwardsRefTo": "HTMLDivElement",
|
|
"filename": "/packages/mui-material/src/Dialog/Dialog.js",
|
|
"inheritance": { "component": "Modal", "pathname": "/material-ui/api/modal/" },
|
|
"demos": "<ul><li><a href=\"/material-ui/react-dialog/\">Dialog</a></li></ul>",
|
|
"cssComponent": false
|
|
}
|