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
129 lines
4.1 KiB
JSON
129 lines
4.1 KiB
JSON
{
|
|
"props": {
|
|
"value": { "type": { "name": "any" }, "required": true },
|
|
"children": { "type": { "name": "node" } },
|
|
"color": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'danger'<br>| 'neutral'<br>| 'primary'<br>| 'success'<br>| 'warning'<br>| string"
|
|
},
|
|
"default": "'neutral'",
|
|
"additionalInfo": { "joy-color": true }
|
|
},
|
|
"disabled": { "type": { "name": "bool" }, "default": "false" },
|
|
"label": { "type": { "name": "union", "description": "element<br>| string" } },
|
|
"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": "'plain'",
|
|
"additionalInfo": { "joy-variant": true }
|
|
}
|
|
},
|
|
"name": "Option",
|
|
"imports": ["import Option from '@mui/joy/Option';", "import { Option } from '@mui/joy';"],
|
|
"slots": [
|
|
{
|
|
"name": "root",
|
|
"description": "The component that renders the root.",
|
|
"default": "'li'",
|
|
"class": "MuiOption-root"
|
|
}
|
|
],
|
|
"classes": [
|
|
{
|
|
"key": "colorContext",
|
|
"className": "MuiOption-colorContext",
|
|
"description": "Class name applied to the root element if `color=\"context\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorDanger",
|
|
"className": "MuiOption-colorDanger",
|
|
"description": "Class name applied to the root element if `color=\"danger\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorNeutral",
|
|
"className": "MuiOption-colorNeutral",
|
|
"description": "Class name applied to the root element if `color=\"neutral\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorPrimary",
|
|
"className": "MuiOption-colorPrimary",
|
|
"description": "Class name applied to the root element if `color=\"primary\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorSuccess",
|
|
"className": "MuiOption-colorSuccess",
|
|
"description": "Class name applied to the root element if `color=\"success\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorWarning",
|
|
"className": "MuiOption-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": "highlighted",
|
|
"className": "MuiOption-highlighted",
|
|
"description": "State class applied to the root element if the option is highlighted.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "selected",
|
|
"className": "Mui-selected",
|
|
"description": "State class applied to the root element if the option is selected.",
|
|
"isGlobal": true
|
|
},
|
|
{
|
|
"key": "variantOutlined",
|
|
"className": "MuiOption-variantOutlined",
|
|
"description": "State class applied to the root element if `variant=\"outlined\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantPlain",
|
|
"className": "MuiOption-variantPlain",
|
|
"description": "State class applied to the root element if `variant=\"plain\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantSoft",
|
|
"className": "MuiOption-variantSoft",
|
|
"description": "State class applied to the root element if `variant=\"soft\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantSolid",
|
|
"className": "MuiOption-variantSolid",
|
|
"description": "State class applied to the root element if `variant=\"solid\"`.",
|
|
"isGlobal": false
|
|
}
|
|
],
|
|
"spread": true,
|
|
"themeDefaultProps": null,
|
|
"muiName": "JoyOption",
|
|
"filename": "/packages/mui-joy/src/Option/Option.tsx",
|
|
"inheritance": null,
|
|
"demos": "<ul><li><a href=\"/joy-ui/react-select/\">Select</a></li></ul>",
|
|
"cssComponent": false
|
|
}
|