Radio
A single-selection interface element that allows users to choose only one option from a given set.
code
Expend code
#Vertical Alignment
code
Expend code
#DefaultChecked
code
Expend code
#Disabled
code
Expend code
Radio
The properties of the Radio component used to display the check state or group information of a radio button.
Prop | Type | Default | Description |
---|---|---|---|
className | string | null | Specifies the CSS styles for the Radio component. |
label | string | null | The text displayed next to the radio button. |
name | string | null | The group name of the radio button. |
value | string | null | The value of the radio button. |
onChange | (event: React.ChangeEvent<HTMLInputElement>) => void | undefined | Callback function called when the selection box of the radio button changes. |
defaultChecked | boolean | false | Determines whether the component should be initially rendered in a selected state. |
disabled | boolean | false | Determines whether the radio button is disabled. |