{ "props": { "children": { "type": { "name": "node" } } }, "name": "MenuItem", "imports": ["import MenuItem from '@mui/joy/MenuItem';", "import { MenuItem } from '@mui/joy';"], "slots": [ { "name": "root", "description": "The component that renders the root.", "default": "'div'", "class": "MuiMenuItem-root" } ], "classes": [ { "key": "colorContext", "className": "MuiMenuItem-colorContext", "description": "Class name applied to the root element when color inversion is triggered.", "isGlobal": false }, { "key": "colorDanger", "className": "MuiMenuItem-colorDanger", "description": "Class name applied to the root element if `color=\"danger\"`.", "isGlobal": false }, { "key": "colorNeutral", "className": "MuiMenuItem-colorNeutral", "description": "Class name applied to the root element if `color=\"neutral\"`.", "isGlobal": false }, { "key": "colorPrimary", "className": "MuiMenuItem-colorPrimary", "description": "Class name applied to the root element if `color=\"primary\"`.", "isGlobal": false }, { "key": "colorSuccess", "className": "MuiMenuItem-colorSuccess", "description": "Class name applied to the root element if `color=\"success\"`.", "isGlobal": false }, { "key": "colorWarning", "className": "MuiMenuItem-colorWarning", "description": "Class name applied to the root element if `color=\"warning\"`.", "isGlobal": false }, { "key": "disabled", "className": "Mui-disabled", "description": "State class applied to the inner `component` element if `disabled={true}`.", "isGlobal": true }, { "key": "focusVisible", "className": "Mui-focusVisible", "description": "State class applied to the `component`'s `focusVisibleClassName` prop.", "isGlobal": true }, { "key": "selected", "className": "Mui-selected", "description": "State class applied to the root element if `selected={true}`.", "isGlobal": true }, { "key": "variantOutlined", "className": "MuiMenuItem-variantOutlined", "description": "State class applied to the root element if `variant=\"outlined\"`.", "isGlobal": false }, { "key": "variantPlain", "className": "MuiMenuItem-variantPlain", "description": "State class applied to the root element if `variant=\"plain\"`.", "isGlobal": false }, { "key": "variantSoft", "className": "MuiMenuItem-variantSoft", "description": "State class applied to the root element if `variant=\"soft\"`.", "isGlobal": false }, { "key": "variantSolid", "className": "MuiMenuItem-variantSolid", "description": "State class applied to the root element if `variant=\"solid\"`.", "isGlobal": false } ], "spread": false, "themeDefaultProps": true, "muiName": "JoyMenuItem", "forwardsRefTo": "HTMLLIElement", "filename": "/packages/mui-joy/src/MenuItem/MenuItem.tsx", "inheritance": { "component": "ListItemButton", "pathname": "/joy-ui/api/list-item-button/" }, "demos": "
", "cssComponent": false }