Overview
Radio buttons allow users to make a single selection from a set of options.
When to use
- To present multiple options where only one can be selected.
- When selection doesn’t take immediate effect and requires form submission.
When not to use
Anatomy
- Radio
- RadioInput
- Label
Variants & States
States
Radio button states are default, hover, disabled, and hasError. Radio button selection states are checked=true and checked=false. The focus state is globally defined, and no special adjustment is made to this component. Radio buttons can be configured to display checked, unchecked, or disabled.
radioGroup
Radio buttons are always displayed as a part of a radioGroup component with two or more options. The vertical spacing between radio buttons is spacing-3.
Internationalization
For RTL (right-to-left), the layout of the radio button is mirrored.
Properties
| Name | Type | Values | Description |
|---|---|---|---|
| checked | Boolean | truefalse |
Specifies whether the radio should be checked by default |
| disabled | Boolean | truefalse |
Sets the radio to appear disabled, preventing user interaction |
| required | Boolean | truefalse |
Specifies if the radio is required |
| value | String | Text that represents the value of the radio when it’s checked | |
| id | String | Defines a unique identifier for the radio |
Usage Guidelines
Content Guidelines
We use radio buttons for selecting one option from a small set. When additional context is needed, we group options under an introduction text or question.
Voice and tone
We keep the tone neutral, helpful, and user-focused, addressing the user as “you.”
Label
- We aim for 1-3 words.
- We do not truncate radio button label text with an ellipsis.
- We use plain language.
- We keep all options in a parallel structure.
- We use sentence case.
- We do not use end punctuation.
Accessibility
We give screen readers enough information. They should announce the radio button’s label, role, and selected state. When available, the position within the group may also be announced.