136 lines
5.8 KiB
JSON
136 lines
5.8 KiB
JSON
|
|
{
|
||
|
|
"props": {
|
||
|
|
"open": { "type": { "name": "bool" }, "required": true },
|
||
|
|
"action": { "type": { "name": "custom", "description": "ref" } },
|
||
|
|
"anchorEl": { "type": { "name": "custom", "description": "HTML element<br>| func" } },
|
||
|
|
"anchorOrigin": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ horizontal: 'center'<br>| 'left'<br>| 'right'<br>| number, vertical: 'bottom'<br>| 'center'<br>| 'top'<br>| number }"
|
||
|
|
},
|
||
|
|
"default": "{\n vertical: 'top',\n horizontal: 'left',\n}"
|
||
|
|
},
|
||
|
|
"anchorPosition": {
|
||
|
|
"type": { "name": "shape", "description": "{ left: number, top: number }" }
|
||
|
|
},
|
||
|
|
"anchorReference": {
|
||
|
|
"type": {
|
||
|
|
"name": "enum",
|
||
|
|
"description": "'anchorEl'<br>| 'anchorPosition'<br>| 'none'"
|
||
|
|
},
|
||
|
|
"default": "'anchorEl'"
|
||
|
|
},
|
||
|
|
"BackdropComponent": {
|
||
|
|
"type": { "name": "elementType" },
|
||
|
|
"default": "styled(Backdrop, {\n name: 'MuiModal',\n slot: 'Backdrop',\n overridesResolver: (props, styles) => {\n return styles.backdrop;\n },\n})({\n zIndex: -1,\n})",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "Use <code>slots.backdrop</code> instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"BackdropProps": {
|
||
|
|
"type": { "name": "object" },
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "Use <code>slotProps.backdrop</code> instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"children": { "type": { "name": "node" } },
|
||
|
|
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
|
||
|
|
"container": { "type": { "name": "union", "description": "HTML element<br>| func" } },
|
||
|
|
"disableScrollLock": { "type": { "name": "bool" }, "default": "false" },
|
||
|
|
"elevation": { "type": { "name": "custom", "description": "integer" }, "default": "8" },
|
||
|
|
"marginThreshold": { "type": { "name": "number" }, "default": "16" },
|
||
|
|
"onClose": { "type": { "name": "func" } },
|
||
|
|
"PaperProps": {
|
||
|
|
"type": { "name": "shape", "description": "{ component?: element type }" },
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "Use <code>slotProps.paper</code> instead."
|
||
|
|
},
|
||
|
|
"slotProps": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ backdrop?: func<br>| object, paper?: func<br>| object, root?: func<br>| object, transition?: func<br>| object }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"slots": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ backdrop?: 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 }
|
||
|
|
},
|
||
|
|
"transformOrigin": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ horizontal: 'center'<br>| 'left'<br>| 'right'<br>| number, vertical: 'bottom'<br>| 'center'<br>| 'top'<br>| number }"
|
||
|
|
},
|
||
|
|
"default": "{\n vertical: 'top',\n horizontal: 'left',\n}"
|
||
|
|
},
|
||
|
|
"TransitionComponent": {
|
||
|
|
"type": { "name": "elementType" },
|
||
|
|
"default": "Grow",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "use the <code>slots.transition</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"transitionDuration": {
|
||
|
|
"type": {
|
||
|
|
"name": "union",
|
||
|
|
"description": "'auto'<br>| number<br>| { appear?: number, enter?: number, exit?: number }"
|
||
|
|
},
|
||
|
|
"default": "'auto'"
|
||
|
|
},
|
||
|
|
"TransitionProps": {
|
||
|
|
"type": { "name": "object" },
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "use the <code>slotProps.transition</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": "Popover",
|
||
|
|
"imports": [
|
||
|
|
"import Popover from '@mui/material/Popover';",
|
||
|
|
"import { Popover } from '@mui/material';"
|
||
|
|
],
|
||
|
|
"slots": [
|
||
|
|
{
|
||
|
|
"name": "root",
|
||
|
|
"description": "The component used for the root slot.",
|
||
|
|
"default": "Modal",
|
||
|
|
"class": "MuiPopover-root"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "paper",
|
||
|
|
"description": "The component used for the paper slot.",
|
||
|
|
"default": "Paper",
|
||
|
|
"class": "MuiPopover-paper"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "transition",
|
||
|
|
"description": "The component used for the transition slot.",
|
||
|
|
"default": "Grow",
|
||
|
|
"class": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "backdrop",
|
||
|
|
"description": "The component used for the backdrop slot.",
|
||
|
|
"default": "Backdrop",
|
||
|
|
"class": null
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"classes": [],
|
||
|
|
"spread": true,
|
||
|
|
"themeDefaultProps": false,
|
||
|
|
"muiName": "MuiPopover",
|
||
|
|
"forwardsRefTo": "HTMLDivElement",
|
||
|
|
"filename": "/packages/mui-material/src/Popover/Popover.js",
|
||
|
|
"inheritance": { "component": "Modal", "pathname": "/material-ui/api/modal/" },
|
||
|
|
"demos": "<ul><li><a href=\"/material-ui/react-menu/\">Menu</a></li>\n<li><a href=\"/material-ui/react-popover/\">Popover</a></li></ul>",
|
||
|
|
"cssComponent": false
|
||
|
|
}
|