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
120 lines
4.3 KiB
JSON
120 lines
4.3 KiB
JSON
{
|
|
"props": {
|
|
"checked": { "type": { "name": "bool" } },
|
|
"checkedIcon": { "type": { "name": "node" }, "default": "<RadioButtonIcon checked />" },
|
|
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
|
|
"color": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'default'<br>| 'primary'<br>| 'secondary'<br>| 'error'<br>| 'info'<br>| 'success'<br>| 'warning'<br>| string"
|
|
},
|
|
"default": "'primary'"
|
|
},
|
|
"disabled": { "type": { "name": "bool" } },
|
|
"disableRipple": { "type": { "name": "bool" }, "default": "false" },
|
|
"icon": { "type": { "name": "node" }, "default": "<RadioButtonIcon />" },
|
|
"id": { "type": { "name": "string" } },
|
|
"inputProps": {
|
|
"type": { "name": "object" },
|
|
"deprecated": true,
|
|
"deprecationInfo": "Use <code>slotProps.input</code> instead. This prop will be removed in a future major release. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
|
},
|
|
"inputRef": {
|
|
"type": { "name": "custom", "description": "ref" },
|
|
"deprecated": true,
|
|
"deprecationInfo": "Use <code>slotProps.input.ref</code> instead. This prop will be removed in a future major release. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
|
},
|
|
"name": { "type": { "name": "string" } },
|
|
"onChange": {
|
|
"type": { "name": "func" },
|
|
"signature": {
|
|
"type": "function(event: React.ChangeEvent<HTMLInputElement>) => void",
|
|
"describedArgs": ["event"]
|
|
}
|
|
},
|
|
"required": { "type": { "name": "bool" }, "default": "false" },
|
|
"size": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'medium'<br>| 'small'<br>| string"
|
|
},
|
|
"default": "'medium'"
|
|
},
|
|
"slotProps": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ input?: func<br>| object, root?: func<br>| object }"
|
|
},
|
|
"default": "{}"
|
|
},
|
|
"slots": {
|
|
"type": { "name": "shape", "description": "{ input?: elementType, root?: elementType }" },
|
|
"default": "{}"
|
|
},
|
|
"sx": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
|
|
},
|
|
"additionalInfo": { "sx": true }
|
|
},
|
|
"value": { "type": { "name": "any" } }
|
|
},
|
|
"name": "Radio",
|
|
"imports": ["import Radio from '@mui/material/Radio';", "import { Radio } from '@mui/material';"],
|
|
"slots": [
|
|
{
|
|
"name": "root",
|
|
"description": "The component that renders the root slot.",
|
|
"default": "SwitchBase",
|
|
"class": "MuiRadio-root"
|
|
},
|
|
{
|
|
"name": "input",
|
|
"description": "The component that renders the input slot.",
|
|
"default": "SwitchBase's input",
|
|
"class": null
|
|
}
|
|
],
|
|
"classes": [
|
|
{
|
|
"key": "checked",
|
|
"className": "Mui-checked",
|
|
"description": "State class applied to the root element if `checked={true}`.",
|
|
"isGlobal": true
|
|
},
|
|
{
|
|
"key": "colorPrimary",
|
|
"className": "MuiRadio-colorPrimary",
|
|
"description": "Styles applied to the root element if `color=\"primary\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "colorSecondary",
|
|
"className": "MuiRadio-colorSecondary",
|
|
"description": "Styles applied to the root element if `color=\"secondary\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "disabled",
|
|
"className": "Mui-disabled",
|
|
"description": "State class applied to the root element if `disabled={true}`.",
|
|
"isGlobal": true
|
|
},
|
|
{
|
|
"key": "sizeSmall",
|
|
"className": "MuiRadio-sizeSmall",
|
|
"description": "Styles applied to the root element if `size=\"small\"`.",
|
|
"isGlobal": false
|
|
}
|
|
],
|
|
"spread": true,
|
|
"themeDefaultProps": true,
|
|
"muiName": "MuiRadio",
|
|
"forwardsRefTo": "HTMLSpanElement",
|
|
"filename": "/packages/mui-material/src/Radio/Radio.js",
|
|
"inheritance": { "component": "ButtonBase", "pathname": "/material-ui/api/button-base/" },
|
|
"demos": "<ul><li><a href=\"/material-ui/react-radio-button/\">Radio Group</a></li></ul>",
|
|
"cssComponent": false
|
|
}
|