Default radio group
Show code
Colors
Use the color
prop to change the color of the group.
Show code
Disabled
Add the disabled
prop to disable the group.
Show code
Row
Use the row
prop to display the group in a row.
Show code
Controlled
Use the value
and onChange
props to control the group.
Show code
Type-safe
The RadioGroup
component is type-safe by default.
Additionally, you can use the RadioGroupOption
type utility to type-safe your
controlled group.
Show code
<Radio />
children
Use the Radio
component to have granular control over the group.
Show code
API
See documentation below for reference to all of the props, classes and CSS
variables (custom properties) available for <RadioGroup />
: