Segmented Control
Button group for selecting from mutually exclusive options. Commonly used for switching between views or modes.
Basic
Simple segmented control with text labels.
Selected: grid
With Icons
Options can include icons alongside labels.
Tool: pointer
Icon Only
Compact variant with just icons (must provide aria-label).
Selected: pointer
Sizes
Segmented controls come in three sizes.
Full Width
Segmented control can expand to fill its container.
Disabled Options
Individual options can be disabled.
Note: "Reverse" is disabled
States
Segmented control has different visual states.
Normal
Disabled
DAW Usage Examples
Common segmented control use cases in a DAW interface.
OSC Waveform
Snap
Tool
Uncontrolled vs Controlled
Supports both controlled and uncontrolled patterns.
Uncontrolled (internal state)
Controlled (parent state)
Keyboard Navigation
Segmented control supports full keyboard navigation.
Navigation
- Arrow Left/Up - Move to previous option
- Arrow Right/Down - Move to next option
- Home - Move to first option
- End - Move to last option
Selection
- Enter or Space - Select focused option
- Tab - Move focus to next element
ARIA
- role="radiogroup" - Container is a radiogroup
- role="radio" - Each option is a radio
- aria-checked - Indicates selected option