Segmented control
a compact switch between a few mutually exclusive options, shown as equal-width pills.
Playground
size
Using it
API
Theming
Color (11)
Size & spacing (14)
Border & radius (2)
Shadow (1)
a compact switch between a few mutually exclusive options, shown as equal-width pills.
Playground
Using it
| Angular | lucent-segmented-control import { LucentSegmentedControl } from '@design-foundry/lucent-angular'; |
| Stylesheet | .lucent-segmented-control @design-foundry/lucent-styles/core.css |
API
| Name | Kind | Type | Default | Description |
|---|---|---|---|---|
| options | input | SegmentedOption<T>[] | [] | { label, value, disabled? } segments. |
| value | input, two-way | T | null | null | selected value (two-way). |
| size | input | xs | sm | md | lg | md | control density. |
| label | input | string | '' | accessible group name. |
Theming