Segmented control
Component preview
A compact group of adjacent options that selects one value and usually applies the change immediately.
Build pack
Choose the task and destination. Technical names stay in English.
In your own words
Documented aliases: segmented buttons, button group selector, view switcher
Try it
Compare all three behaviors
Shared comparison scenario: A project workspace reveals related content in place while preserving the user's position on the page.
This context stays fixed. Switch concepts to observe the mission, edge case, and specimen specific to each behavior.
Segmented control
Segmented control selects one value; Tabs selects a content panel, while Accordion expands or collapses sections independently.
Your task
Choose Compact with pointer, then Dense with arrows, and verify only one value remains selected.
Edge case to verify
At 320 px the labels remain on one line or the control changes to a more suitable Select without clipping.
Mission
Choose Compact with pointer, then Dense with arrows, and verify only one value remains selected.
Select a marker directly on the specimen, or use the list below, to see its role. Hide the markers to operate the lab without obstruction.
Group label
A shared name that explains the choice represented by the group.
Keep one choice selected
Selecting one item automatically clears the previous item in the named group.
Apply immediately
Changing the on or off state takes effect immediately and does not wait for form submission.
Navigate with arrows
Arrow keys move through related items according to their visual orientation.
Comfortable density selected
Comfortable density selected
Compact density selected
Compact density selected
Dense density selected
Dense density selected
Comfortable density selected → Compact density selected
Pointer or touch activates Compact and immediately updates calendar density.
Compact density selected → Dense density selected
Arrow navigation selects Dense and immediately replaces the Compact value.
Dense density selected → Comfortable density selected
Activating Comfortable restores the original calendar density.
fieldset with input[type=radio]
Equivalence caveat: This binding is a single-value control. If each segment reveals a distinct content panel, the canonical pattern is Tabs instead.
Verify binding sourceW3C WAI · standard · 2026-07-16
Claim covered: Segmented control: radio group naming, exclusive selection, focus, and arrow-key interaction guidance.
WHATWG · standard · 2026-07-16
Claim covered: Segmented control: native input types, labeling, state, validation, and form participation.
Verified on 2026-07-16 · rev. 1