Label
The RadioGroup provides an accessible way to group and control a set of RadioItem components. The RadioGroup is responsible for handling the value, tone, message, and disabled state—determining the presentation and selection of the items in the list.
Follows the WAI-ARIA Radio Group Pattern for radio groups not contained in a toolbar.
A message is typically used to communicate the status of a field, such as an error message. This will be announced on focus of the field and can be combined with a tone to illustrate its purpose.
The supported tones are: "critical" and "neutral".
Label
Critical message
Additional context can be provided with a description. This will display below the field label and also be announced by a screen reader when the field is focused.
Label
Extra information about the field
You can customise the size of the radio items via the size prop, which accepts either standard or small.
Standard
Small
Mark the field as disabled by passing true to the disabled prop.
Label
Additional context can also be provided at an item level with a description. This will display below the RadioItem label and also be announced by a screen reader when the item is focused.
Label
Description for item 1
Description for item 2
Description for item 3
Add a Badge alongside the RadioItem label using the badge prop.
Label
Positive
Nesting content inside of a RadioItem will both align the content with the item label, and toggle it’s visibility based on the value state.
Label
Nested content