Radio

Provides single user input from a selection of options.

Name
Type
Description
label
string
aria-labelledby for the RadioGroup.
name
string (optional)
Explicitly set the name of the input.
value
string | null
Currently selected value.
onChange
(value: string | null) => void
Called when an option is selected.
required
boolean
Makes the input required.
disabled
boolean
Disables all options.
Name
Type
Description
value
string
Value of the item.
label
string
Whether the children components should be a label or span
disabled
boolean
Disables the item.

Code Editor

Code Editor

Code Editor

TODO