Use when
- There are a few mutually exclusive modes.
- The change affects nearby content immediately.
Present adjacent options as a single control with one active segment and immediate local effect.
Users need to switch between a small set of mutually exclusive modes, filters, or views in a compact area.
The full lab is intentionally loaded on request. That keeps this reading page fast while preserving the strong and weak states, keyboard checks, and failure scenarios.
The options alter a local view or setting rather than navigate to separate content sections.
Present adjacent options as a single control with one active segment and immediate local effect.
Default selected segment.
Ambiguous icon-only segments.
Expose selected or pressed state and the group name.
VA.gov Design System - checked
VA documents segmented buttons as 2-4 mutually exclusive filters or view switches for one data set with one option always active.
Android Developers - checked
Android documents single-choice and multi-choice segmented button rows, selected state tracking, and a limit for complex or larger sets.
Microsoft Fluent 2 - checked
Fluent iOS documents one selected option in a single context, concise labels, no page navigation, and no wrapping.
Source trail checked: