106 lines
3.9 KiB
JSON
106 lines
3.9 KiB
JSON
|
|
{
|
||
|
|
"props": {
|
||
|
|
"open": { "type": { "name": "bool" }, "required": true },
|
||
|
|
"anchorEl": { "type": { "name": "union", "description": "HTML element<br>| func" } },
|
||
|
|
"autoFocus": { "type": { "name": "bool" }, "default": "true" },
|
||
|
|
"children": { "type": { "name": "node" } },
|
||
|
|
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
|
||
|
|
"disableAutoFocusItem": { "type": { "name": "bool" }, "default": "false" },
|
||
|
|
"MenuListProps": {
|
||
|
|
"type": { "name": "object" },
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "use the <code>slotProps.list</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."
|
||
|
|
},
|
||
|
|
"onClose": {
|
||
|
|
"type": { "name": "func" },
|
||
|
|
"signature": {
|
||
|
|
"type": "function(event: object, reason: string) => void",
|
||
|
|
"describedArgs": ["event", "reason"]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"PopoverClasses": { "type": { "name": "object" } },
|
||
|
|
"slotProps": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ backdrop?: func<br>| object, list?: func<br>| object, paper?: func<br>| object, root?: func<br>| object, transition?: func<br>| object }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"slots": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ backdrop?: elementType, list?: 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 }
|
||
|
|
},
|
||
|
|
"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."
|
||
|
|
},
|
||
|
|
"variant": {
|
||
|
|
"type": { "name": "enum", "description": "'menu'<br>| 'selectedMenu'" },
|
||
|
|
"default": "'selectedMenu'"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": "Menu",
|
||
|
|
"imports": ["import Menu from '@mui/material/Menu';", "import { Menu } from '@mui/material';"],
|
||
|
|
"slots": [
|
||
|
|
{
|
||
|
|
"name": "root",
|
||
|
|
"description": "The component used for the popper.",
|
||
|
|
"default": "Modal",
|
||
|
|
"class": "MuiMenu-root"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "paper",
|
||
|
|
"description": "The component used for the paper.",
|
||
|
|
"default": "PopoverPaper",
|
||
|
|
"class": "MuiMenu-paper"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "list",
|
||
|
|
"description": "The component used for the list.",
|
||
|
|
"default": "MenuList",
|
||
|
|
"class": "MuiMenu-list"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"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": "MuiMenu",
|
||
|
|
"forwardsRefTo": "HTMLDivElement",
|
||
|
|
"filename": "/packages/mui-material/src/Menu/Menu.js",
|
||
|
|
"inheritance": { "component": "Popover", "pathname": "/material-ui/api/popover/" },
|
||
|
|
"demos": "<ul><li><a href=\"/material-ui/react-app-bar/\">App Bar</a></li>\n<li><a href=\"/material-ui/react-menu/\">Menu</a></li></ul>",
|
||
|
|
"cssComponent": false
|
||
|
|
}
|