<st-segmented-control>
JSON type: SegmentedControl
A row of mutually exclusive segments in a grey track, one of them lifted as white. Pass the
segments as options and the chosen one as value; a segment-change event fires on choice.
Keyboard: arrows move between segments, Home and End jump to the ends.
Usage
import '@sankhyatronics/sankhya-cms/segmented-control'; // registers <st-segmented-control>
Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
options | — | SegmentedOption[] | [] | The segments, in order. |
value | value | string | '' | The chosen segment's value. |
groupLabel | group-label | string | '' | Names the group for assistive technology. |
Events
| Event | Detail | Description |
|---|---|---|
segment-change | CustomEvent |
See the live examples in Storybook.