Radio Group
A set of options of which one is checked at a time, each a circle filled with the action colour when checked and named by its label.
Usage
Examples
Sizes
size on the group reaches every item: sm 14px, base 16px (the default) or lg 20px circles, the space between them a step either side. An item may also take its own.
Orientation
orientation sets the options in a column by default, or in a row with "horizontal", where the left and right arrow keys move along it.
Disabled
disabled on an item dims it and its label, and the arrow keys pass over it, beside an item as it is by default.
Invalid
error on the group writes what is wrong under it, rings every item in the destructive colour and describes the group to screen readers, beside one without an error.
API Reference
RadioGroup
RadioGroupProps · components/RadioGroup/RadioGroup.types.tsRadioGroupItem
RadioGroupItemProps · also takes the props of Radix RadioGroup.ItemIt also takes the props of Radix RadioGroup.Root.