Component · Forms

Segmented control

a compact switch between 2–4 mutually exclusive options, shown as equal-width pills.

Example

Where available

React
Angular
Web Components
Blazor
Tokens

Using it

the same component, named idiomatically per target. one CSS contract underneath, so they render identically.

TargetReferencePackage
React <SegmentedControl> @design-foundry/lucent-react
Angular <lucent-segmented-control> @design-foundry/lucent
Web Components <lucent-segmented-control> @design-foundry/lucent-wc
Blazor <LucentSegmentedControl> DesignFoundry.Lucent

API

PropTypeDefaultDescription
options {label,value,disabled?}[] [] segments (set as a property).
value unknown selected value.
size xs | sm | md | lg md control density.
label string accessible group name.