{ "props": { "color": { "type": { "name": "union", "description": "'danger'
| 'info'
| 'neutral'
| 'primary'
| 'success'
| 'warning'
| string" }, "default": "'neutral'", "additionalInfo": { "joy-color": true } }, "component": { "type": { "name": "elementType" } }, "disabled": { "type": { "name": "bool" }, "default": "false" }, "endDecorator": { "type": { "name": "node" } }, "fullWidth": { "type": { "name": "bool" }, "default": "false" }, "loading": { "type": { "name": "bool" }, "default": "false" }, "loadingIndicator": { "type": { "name": "node" }, "default": "" }, "loadingPosition": { "type": { "name": "enum", "description": "'center'
| 'end'
| 'start'" }, "default": "'center'" }, "size": { "type": { "name": "union", "description": "'sm'
| 'md'
| 'lg'
| string" }, "default": "'md'", "additionalInfo": { "joy-size": true } }, "slotProps": { "type": { "name": "shape", "description": "{ endDecorator?: func
| object, loadingIndicatorCenter?: func
| object, root?: func
| object, startDecorator?: func
| object }" }, "default": "{}" }, "slots": { "type": { "name": "shape", "description": "{ endDecorator?: elementType, loadingIndicatorCenter?: elementType, root?: elementType, startDecorator?: elementType }" }, "default": "{}", "additionalInfo": { "slotsApi": true } }, "startDecorator": { "type": { "name": "node" } }, "sx": { "type": { "name": "union", "description": "Array<func
| object
| bool>
| func
| object" }, "additionalInfo": { "sx": true } }, "variant": { "type": { "name": "union", "description": "'outlined'
| 'plain'
| 'soft'
| 'solid'
| string" }, "default": "'outlined'", "additionalInfo": { "joy-variant": true } } }, "name": "MenuButton", "imports": [ "import MenuButton from '@mui/joy/MenuButton';", "import { MenuButton } from '@mui/joy';" ], "slots": [ { "name": "root", "description": "The component that renders the root.", "default": "'button'", "class": "MuiMenuButton-root" }, { "name": "startDecorator", "description": "The component that renders the start decorator.", "default": "'span'", "class": "MuiMenuButton-startDecorator" }, { "name": "endDecorator", "description": "The component that renders the end decorator.", "default": "'span'", "class": "MuiMenuButton-endDecorator" }, { "name": "loadingIndicatorCenter", "description": "The component that renders the loading indicator center.", "default": "'span'", "class": "MuiMenuButton-loadingIndicatorCenter" } ], "classes": [ { "key": "colorContext", "className": "MuiMenuButton-colorContext", "description": "Class name applied to the root element when color inversion is triggered.", "isGlobal": false }, { "key": "colorDanger", "className": "MuiMenuButton-colorDanger", "description": "Class name applied to the root element if `color=\"danger\"`.", "isGlobal": false }, { "key": "colorInfo", "className": "MuiMenuButton-colorInfo", "description": "Class name applied to the root element if `color=\"info\"`.", "isGlobal": false }, { "key": "colorNeutral", "className": "MuiMenuButton-colorNeutral", "description": "Class name applied to the root element if `color=\"neutral\"`.", "isGlobal": false }, { "key": "colorPrimary", "className": "MuiMenuButton-colorPrimary", "description": "Class name applied to the root element if `color=\"primary\"`.", "isGlobal": false }, { "key": "colorSuccess", "className": "MuiMenuButton-colorSuccess", "description": "Class name applied to the root element if `color=\"success\"`.", "isGlobal": false }, { "key": "colorWarning", "className": "MuiMenuButton-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 root element if `disabled={true}`.", "isGlobal": true }, { "key": "fullWidth", "className": "MuiMenuButton-fullWidth", "description": "Class name applied to the root element if `fullWidth={true}`.", "isGlobal": false }, { "key": "loading", "className": "MuiMenuButton-loading", "description": "Class name applied to the root element if `loading={true}`.", "isGlobal": false }, { "key": "sizeLg", "className": "MuiMenuButton-sizeLg", "description": "Class name applied to the root element if `size=\"lg\"`.", "isGlobal": false }, { "key": "sizeMd", "className": "MuiMenuButton-sizeMd", "description": "Class name applied to the root element if `size=\"md\"`.", "isGlobal": false }, { "key": "sizeSm", "className": "MuiMenuButton-sizeSm", "description": "Class name applied to the root element if `size=\"sm\"`.", "isGlobal": false }, { "key": "variantOutlined", "className": "MuiMenuButton-variantOutlined", "description": "Class name applied to the root element if `variant=\"outlined\"`.", "isGlobal": false }, { "key": "variantPlain", "className": "MuiMenuButton-variantPlain", "description": "Class name applied to the root element if `variant=\"plain\"`.", "isGlobal": false }, { "key": "variantSoft", "className": "MuiMenuButton-variantSoft", "description": "Class name applied to the root element if `variant=\"soft\"`.", "isGlobal": false }, { "key": "variantSolid", "className": "MuiMenuButton-variantSolid", "description": "Class name applied to the root element if `variant=\"solid\"`.", "isGlobal": false } ], "spread": true, "themeDefaultProps": true, "muiName": "JoyMenuButton", "forwardsRefTo": "HTMLButtonElement", "filename": "/packages/mui-joy/src/MenuButton/MenuButton.tsx", "inheritance": null, "demos": "", "cssComponent": false }