Files
react-test/docs/pages/material-ui/api/menu.json
how2ice 005cf56baf
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
init project
2025-12-12 14:26:25 +09:00

106 lines
3.9 KiB
JSON

{
"props": {
"open": { "type": { "name": "bool" }, "required": true },
"anchorEl": { "type": { "name": "union", "description": "HTML element<br>&#124;&nbsp;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>&#124;&nbsp;object, list?: func<br>&#124;&nbsp;object, paper?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object, transition?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ backdrop?: elementType, list?: elementType, paper?: elementType, root?: elementType, transition?: elementType }"
},
"default": "{}"
},
"sx": {
"type": {
"name": "union",
"description": "Array&lt;func<br>&#124;&nbsp;object<br>&#124;&nbsp;bool&gt;<br>&#124;&nbsp;func<br>&#124;&nbsp;object"
},
"additionalInfo": { "sx": true }
},
"transitionDuration": {
"type": {
"name": "union",
"description": "'auto'<br>&#124;&nbsp;number<br>&#124;&nbsp;{ 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>&#124;&nbsp;'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
}