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
208 lines
6.7 KiB
JSON
208 lines
6.7 KiB
JSON
{
|
|
"props": {
|
|
"color": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'danger'<br>| 'info'<br>| 'neutral'<br>| 'primary'<br>| 'success'<br>| 'warning'<br>| 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": "<CircularProgress />" },
|
|
"loadingPosition": {
|
|
"type": {
|
|
"name": "enum",
|
|
"description": "'center'<br>| 'end'<br>| 'start'"
|
|
},
|
|
"default": "'center'"
|
|
},
|
|
"size": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'sm'<br>| 'md'<br>| 'lg'<br>| string"
|
|
},
|
|
"default": "'md'",
|
|
"additionalInfo": { "joy-size": true }
|
|
},
|
|
"slotProps": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ endDecorator?: func<br>| object, loadingIndicatorCenter?: func<br>| object, root?: func<br>| object, startDecorator?: func<br>| 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<br>| object<br>| bool><br>| func<br>| object"
|
|
},
|
|
"additionalInfo": { "sx": true }
|
|
},
|
|
"variant": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'outlined'<br>| 'plain'<br>| 'soft'<br>| 'solid'<br>| 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": "<ul><li><a href=\"/joy-ui/react-menu/\">Menu</a></li></ul>",
|
|
"cssComponent": false
|
|
}
|