- Always use within a parent component.
- Always use as part of a group.
Radio
A radio button is an interactive element that allows users to select a single option from a predefined set of choices.
Overview
Radio buttons offer a mechanism for users to choose only one option from a predefined set of mutually-exclusive options.
They are commonly used in forms, settings panels, and various interfaces requiring users to make a single selection from multiple options.
Dos and Don’ts
- Don’t apply an assistive text directly to the radio button, but instead to the parent component.
Anatomy
- Radio input: A radio input indicates the appropriate state. By default it is unselected.
- Label (Optional): Describes the information you want to select or unselect.
Variations
Default
Modifiers
Label
A label should always be present unless being used as a nested component and an alternative label is given.
Content
All content should use sentence case.
Label
- Always use clear and concise labels for radio buttons.
Overflow
When the label exceeds the available width, it will wrap onto a new line.
Behaviours
States
The radio button can be in one of two states: selected or unselected. The default state is unselected.
Interactions
Users can trigger the radio directly or by clicking the radio label. Having all regions interactive creates a more accessible click target.
Interactive states
Outlines the atomic level interactive elements for the component.
Examples
LTR examples
Here are some examples of the component in a left-to-right context:
RTL examples
Here are some examples of the component in a right-to-left context:
Resources
Stable | |
Stable | |
Beta | |
Stable | |
Stable | |
| Stable |
| Stable |
| Stable |