Usage
Segmented buttons help people select options, switch views, or sort elements.
- Two types: single-select and multi-select
- Use for simple choices between two to five items (for more items or complex choices, use chips)
Given that I am on a screen with a segmented button
| When I use | I see/hear |
|---|---|
| Tab | Focus visibly moves to the button |
| Spacebar or enter | Selects the button |
| When I use | I hear |
|---|---|
| Swipe | Focus moves to the buttons, expresses its state |
| Doubletap | Selects the button |
| Reads | I hear |
|---|---|
| Name | Its purpose is clear and matches visible label |
| Role single select | If single select it identifies as radio button |
| Role multiple select | If multiple select it identifies as checkbox |
| Group | Its visible label (if any) is grouped or associated with the button in a single swipe |
| State | It expresses its state (selected/disabled) |
| When I use | I see |
|---|---|
| Text resize | This element is exempt from text resizing requirements |
Segmented buttons help people select options, switch views, or sort elements.