Draft. Proposed from the survey of 18 design systems and not yet approved. It is in the registry so teams can try it; the API may still change before approval.
When to use
- To switch the view, period or format of nearby content: Day, Week, Month; List or Grid.
- When all options fit in one row and the change applies at once, without a Save button.
When not to use
- For more than five options, or long labels. Use a select.
- In a form that is submitted. Use radio buttons.
- To run actions. Use a button group.
Anatomy
| Part | Notes |
|---|---|
| Track | color.background.neutral, radius.control, padding space.050 |
| Segment | 24 px high, font.label.default, text color.text.subtle; hover color.background.neutral.hover |
| Selected segment | color.surface with elevation.shadow.raised, text color.text |
Segments hold text, or an icon with an aria-label. Don’t mix both kinds in one control.
Keyboard
| Key | Does |
|---|---|
| Tab | Moves focus to the selected segment |
| Arrow keys | Select the previous or next segment |
Accessibility
role="radiogroup"with anaria-label; each segment isrole="radio"witharia-checked.- The selected segment differs in fill, shadow and text colour, not in colour alone.