Segmented control
A single-select group of segments.
Disabled
Sizes
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
options | readonly (string | SegmentOption)[] | [] | Available segments; plain strings are used as both value and label. |
Two-way models
Bind with [(name)], or one-way as an input.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '' | Currently selected segment value. Two-way bindable with `[(value)]`. |
disabled | boolean | false | Whether all segments are disabled. Two-way bindable with `[(disabled)]`. |
Types
SegmentOption
| Field | Type | Description |
|---|---|---|
value | string | Value emitted when this segment is selected. |
label | string | Text shown on the segment button. |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.