Input
Radio
A group of round buttons where exactly one option can be chosen.
Demo
Also known as
- Radio button — Carbon Design System
How to recognize it
Small circles next to labels, stacked or in a row. The chosen one has a filled dot in the middle.
Behavior
- Choosing an option clears the previous choice in the same group.
- Once one is chosen, the group cannot go back to having none chosen.
- Tab moves into the group as one stop; arrow keys move between the options and choose them at the same time.
Keyboard
| Key | Action |
|---|---|
| Tab | Moves into the group (to the chosen option) and out of it. |
| ↓ / → | Chooses the next option, wrapping to the first. |
| ↑ / ← | Chooses the previous option, wrapping to the last. |
| Space | Chooses the focused option. |
Usage notes
- A selected radio button cannot be cleared, so add a choice such as "None of these" to optional questions.
- Put the circle to the left of its label.
Similar components
Sources
- WAI-ARIA APG: Radio Group Pattern (Last checked: )
- Carbon Design System: Radio button (Last checked: )
- デジタル庁デザインシステムウェブサイト「ラジオボタン」をもとに作成 (Last checked: )