Radio
A Radio button is a component that acts as a single input control and is part of a set within a Radio Group. It has two states, On and Off.
Properties
Name | Type | Default | Description |
---|---|---|---|
label | node | Specifies a label for the component. | |
value | any | Specifies a value for the component. | |
disabled | bool | false | If true, the radio button is disabled. |
required | bool | false | If true, the radio button must be checked. |
readOnly | bool | false | If true, the radio button is read only. |
autofocus | bool | false | If true, autofocus is enabled. |
Style Attributes
Name | Type | Default | Description |
---|---|---|---|
color | default primary secondary error info success warning string | primary | Defines the color of the component. |
size | small medium string | medium | Defines the size of the component. |
labelPlacement | top bottom end start string | end | Specifies the location of the radio label. |
disableRipple | bool | false | By default, the radio component has a ripple effect triggered when the radio state is modified. To disable this effect, set "Disable Ripple" on. |
For more detail on the Radio component, see the MUI developer docs.