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
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 | |
Alpha | |
Stable | |
Stable | |
iOS JustUI [UI Kit] | Stable |
iOS PIE [SwiftUI] | Stable |
Android PIE [Compose & Views] | Stable |