Components › Forms & input › Choice › Segmented control

Segmented control

canon

Inline group of mutually exclusive buttons for switching modes.

acrm !4066 (28 Sep 2026): SegmentedOption.count?: number — neutral .acrm-count after the label (CountBadge look, never accent), 0 not drawn; first use segment detail "Vše | Přírůstky (N)" (replaced .sgb-ctl chips). 30 Sep 2026 (acrm !4252, AD FA218): option prop tone?: positive | warning | critical colours only the TEXT of the selected option (.on.seg-tone-*) with --positive-ink / --warning-ink / --critical-ink (AA ≥ 5.3:1 light and dark). Only for an answer with meaning (yes / maybe / no, e.g. meeting RSVP), never decoration; selection still carried by the surface and aria-pressed.

Used in 58 files · 35 areas · 71× — components/accounting, components/agent-desk, components/assistant, components/callwrapup, components/clen-tymu, components/costs …

Default

components--segmented-control--defaultOpen standalone ↗Code

Variants

compact — toolbar chip
grow — full width, even columns
with count — neutral count on the active option (0 is not drawn)
with count — on an inactive option
with tone — Yes/Maybe/No (positive · warning · critical)
components--segmented-control--variantsOpen standalone ↗Code

With icon & kbd

icon before label
icon before label, grow
components--segmented-control--with-icon-kbdOpen standalone ↗Code

Composition

Calendar
section top bar — view switch next to the title
form field — grow inside a drawer field
components--segmented-control--compositionOpen standalone ↗Code