Appearance
Segmented
A segmented control is a linear set of two or more segments, each of which functions as a button.
Usage
For now, we have only developed the design system skin
- Item selected
- Item not selected
Props
ComponentSkin skinIndicates which skin should be used for the component Default value: ComponentSkin.DESIGN_SYSTEMSegmentedItem[] itemsElements that act as buttons. Each item will have an optional title or an optional icon.boolean readonlyIf true, the segmented control will be disabled. By default, it is set to false. Default value: falseOptions
Add iconsAdd icons to the breadcrumb link
Add textAdd text to the breadcrumb link
Disable segmentsDisable the segments
Events
SegmentedItem change-segmentEmitted when the segment changesType declarations
SegmentedItem
ts
export interface SegmentedItem {
iconActive?: string;
iconInactive?: string;
label?: string;
id?: number;
active?: boolean;
}