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
227 lines
7.3 KiB
JSON
227 lines
7.3 KiB
JSON
{
|
|
"props": {
|
|
"action": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "func<br>| { current?: { focusVisible: func } }"
|
|
}
|
|
},
|
|
"autoFocus": { "type": { "name": "bool" }, "default": "false" },
|
|
"color": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'danger'<br>| 'neutral'<br>| 'primary'<br>| 'success'<br>| 'warning'<br>| string"
|
|
},
|
|
"default": "'neutral'",
|
|
"additionalInfo": { "joy-color": true }
|
|
},
|
|
"component": { "type": { "name": "elementType" } },
|
|
"defaultListboxOpen": { "type": { "name": "bool" }, "default": "false" },
|
|
"defaultValue": { "type": { "name": "any" } },
|
|
"disabled": { "type": { "name": "bool" }, "default": "false" },
|
|
"endDecorator": { "type": { "name": "node" } },
|
|
"getSerializedValue": { "type": { "name": "func" } },
|
|
"indicator": { "type": { "name": "node" } },
|
|
"listboxId": { "type": { "name": "string" } },
|
|
"listboxOpen": { "type": { "name": "bool" }, "default": "undefined" },
|
|
"multiple": { "type": { "name": "bool" } },
|
|
"name": { "type": { "name": "string" } },
|
|
"onChange": { "type": { "name": "func" } },
|
|
"onClose": { "type": { "name": "func" } },
|
|
"onListboxOpenChange": { "type": { "name": "func" } },
|
|
"placeholder": { "type": { "name": "node" } },
|
|
"renderValue": { "type": { "name": "func" } },
|
|
"required": { "type": { "name": "bool" }, "default": "false" },
|
|
"size": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'sm'<br>| 'md'<br>| 'lg'<br>| string"
|
|
},
|
|
"additionalInfo": { "joy-size": true }
|
|
},
|
|
"slots": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ button?: elementType, endDecorator?: elementType, indicator?: elementType, listbox?: 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 }
|
|
},
|
|
"value": { "type": { "name": "any" } },
|
|
"variant": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'outlined'<br>| 'plain'<br>| 'soft'<br>| 'solid'<br>| string"
|
|
},
|
|
"default": "'outlined'",
|
|
"additionalInfo": { "joy-variant": true }
|
|
}
|
|
},
|
|
"name": "Select",
|
|
"imports": ["import Select from '@mui/joy/Select';", "import { Select } from '@mui/joy';"],
|
|
"slots": [
|
|
{
|
|
"name": "root",
|
|
"description": "The component that renders the root.",
|
|
"default": "'div'",
|
|
"class": "MuiSelect-root"
|
|
},
|
|
{
|
|
"name": "button",
|
|
"description": "The component that renders the button.",
|
|
"default": "'button'",
|
|
"class": "MuiSelect-button"
|
|
},
|
|
{
|
|
"name": "startDecorator",
|
|
"description": "The component that renders the start decorator.",
|
|
"default": "'span'",
|
|
"class": "MuiSelect-startDecorator"
|
|
},
|
|
{
|
|
"name": "endDecorator",
|
|
"description": "The component that renders the end decorator.",
|
|
"default": "'span'",
|
|
"class": "MuiSelect-endDecorator"
|
|
},
|
|
{
|
|
"name": "indicator",
|
|
"description": "The component that renders the indicator.",
|
|
"default": "'span'",
|
|
"class": "MuiSelect-indicator"
|
|
},
|
|
{
|
|
"name": "listbox",
|
|
"description": "The component that renders the listbox.",
|
|
"default": "'ul'",
|
|
"class": "MuiSelect-listbox"
|
|
}
|
|
],
|
|
"classes": [
|
|
{
|
|
"key": "colorContext",
|
|
"className": "MuiSelect-colorContext",
|
|
"description": "Class name applied to the root element when color inversion is triggered.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorDanger",
|
|
"className": "MuiSelect-colorDanger",
|
|
"description": "Class name applied to the root slot if `color=\"danger\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorNeutral",
|
|
"className": "MuiSelect-colorNeutral",
|
|
"description": "Class name applied to the root slot if `color=\"neutral\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorPrimary",
|
|
"className": "MuiSelect-colorPrimary",
|
|
"description": "Class name applied to the root slot if `color=\"primary\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorSuccess",
|
|
"className": "MuiSelect-colorSuccess",
|
|
"description": "Class name applied to the root slot if `color=\"success\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorWarning",
|
|
"className": "MuiSelect-colorWarning",
|
|
"description": "Class name applied to the root slot if `color=\"warning\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "disabled",
|
|
"className": "Mui-disabled",
|
|
"description": "State class applied to the root slot if `disabled={true}`.",
|
|
"isGlobal": true
|
|
},
|
|
{
|
|
"key": "expanded",
|
|
"className": "Mui-expanded",
|
|
"description": "State class applied to the root slot if listbox open.",
|
|
"isGlobal": true
|
|
},
|
|
{
|
|
"key": "focusVisible",
|
|
"className": "Mui-focusVisible",
|
|
"description": "State class applied to the SelectBase root slot if the button is keyboard focused.",
|
|
"isGlobal": true
|
|
},
|
|
{
|
|
"key": "multiple",
|
|
"className": "MuiSelect-multiple",
|
|
"description": "Class name applied to the root slot if `multiple=true`",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "popper",
|
|
"className": "MuiSelect-popper",
|
|
"description": "Class name applied to the popper slot.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "sizeLg",
|
|
"className": "MuiSelect-sizeLg",
|
|
"description": "Class name applied to the root slot if `size=\"lg\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "sizeMd",
|
|
"className": "MuiSelect-sizeMd",
|
|
"description": "Class name applied to the root slot if `size=\"md\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "sizeSm",
|
|
"className": "MuiSelect-sizeSm",
|
|
"description": "Class name applied to the root slot if `size=\"sm\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantOutlined",
|
|
"className": "MuiSelect-variantOutlined",
|
|
"description": "Class name applied to the root slot if `variant=\"outlined\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantPlain",
|
|
"className": "MuiSelect-variantPlain",
|
|
"description": "Class name applied to the root slot if `variant=\"plain\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantSoft",
|
|
"className": "MuiSelect-variantSoft",
|
|
"description": "Class name applied to the root slot if `variant=\"soft\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "variantSolid",
|
|
"className": "MuiSelect-variantSolid",
|
|
"description": "Class name applied to the root slot if `variant=\"solid\"`.",
|
|
"isGlobal": false
|
|
}
|
|
],
|
|
"spread": false,
|
|
"themeDefaultProps": true,
|
|
"muiName": "JoySelect",
|
|
"forwardsRefTo": "HTMLDivElement",
|
|
"filename": "/packages/mui-joy/src/Select/Select.tsx",
|
|
"inheritance": null,
|
|
"demos": "<ul><li><a href=\"/joy-ui/react-select/\">Select</a></li></ul>",
|
|
"cssComponent": false
|
|
}
|