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
121 lines
4.9 KiB
JSON
121 lines
4.9 KiB
JSON
{
|
|
"componentDescription": "",
|
|
"propDescriptions": {
|
|
"checked": { "description": "If <code>true</code>, the component is checked." },
|
|
"color": {
|
|
"description": "The color of the component. It supports those theme colors that make sense for this component."
|
|
},
|
|
"component": {
|
|
"description": "The component used for the root node. Either a string to use a HTML element or a component."
|
|
},
|
|
"defaultChecked": {
|
|
"description": "The default checked state. Use when the component is not controlled."
|
|
},
|
|
"disabled": { "description": "If <code>true</code>, the component is disabled." },
|
|
"endDecorator": { "description": "The element that appears at the end of the switch." },
|
|
"onChange": {
|
|
"description": "Callback fired when the state is changed.",
|
|
"typeDescriptions": {
|
|
"event": {
|
|
"name": "event",
|
|
"description": "The event source of the callback. You can pull out the new value by accessing <code>event.target.value</code> (string). You can pull out the new checked state by accessing <code>event.target.checked</code> (boolean)."
|
|
}
|
|
}
|
|
},
|
|
"readOnly": { "description": "If <code>true</code>, the component is read only." },
|
|
"required": {
|
|
"description": "If <code>true</code>, the <code>input</code> element is required."
|
|
},
|
|
"size": { "description": "The size of the component." },
|
|
"slotProps": { "description": "The props used for each slot inside." },
|
|
"slots": { "description": "The components used for each slot inside." },
|
|
"startDecorator": { "description": "The element that appears at the end of the switch." },
|
|
"sx": {
|
|
"description": "The system prop that allows defining system overrides as well as additional CSS styles."
|
|
},
|
|
"variant": {
|
|
"description": "The <a href=\"https://mui.com/joy-ui/main-features/global-variants/\">global variant</a> to use."
|
|
}
|
|
},
|
|
"classDescriptions": {
|
|
"checked": {
|
|
"description": "State class applied to {{nodeName}}.",
|
|
"nodeName": "the root <code>checked</code> class"
|
|
},
|
|
"colorContext": {
|
|
"description": "Class name applied to {{nodeName}} when {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "color inversion is triggered"
|
|
},
|
|
"colorDanger": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>color=\"danger\"</code>"
|
|
},
|
|
"colorPrimary": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>color=\"primary\"</code>"
|
|
},
|
|
"colorSuccess": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>color=\"success\"</code>"
|
|
},
|
|
"colorWarning": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>color=\"warning\"</code>"
|
|
},
|
|
"disabled": {
|
|
"description": "State class applied to {{nodeName}}.",
|
|
"nodeName": "the root disabled class"
|
|
},
|
|
"focusVisible": {
|
|
"description": "State class applied to the root element if the switch has visible focus"
|
|
},
|
|
"readOnly": {
|
|
"description": "Class name applied to the root element if the switch is read-only"
|
|
},
|
|
"sizeLg": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>size=\"lg\"</code>"
|
|
},
|
|
"sizeMd": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>size=\"md\"</code>"
|
|
},
|
|
"sizeSm": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>size=\"sm\"</code>"
|
|
},
|
|
"variantOutlined": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>variant=\"outlined\"</code>"
|
|
},
|
|
"variantSoft": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>variant=\"soft\"</code>"
|
|
},
|
|
"variantSolid": {
|
|
"description": "Class name applied to {{nodeName}} if {{conditions}}.",
|
|
"nodeName": "the root element",
|
|
"conditions": "<code>variant=\"solid\"</code>"
|
|
}
|
|
},
|
|
"slotDescriptions": {
|
|
"action": "The component that renders the action.",
|
|
"endDecorator": "The component that renders the end decorator.",
|
|
"input": "The component that renders the input.",
|
|
"root": "The component that renders the root.",
|
|
"startDecorator": "The component that renders the start decorator.",
|
|
"thumb": "The component that renders the thumb.",
|
|
"track": "The component that renders the track."
|
|
}
|
|
}
|