Segmented control

A single-select group of segments.

Disabled

Sizes

API reference

Inputs

PropTypeDefaultDescription
optionsreadonly (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.

PropTypeDefaultDescription
valuestring''Currently selected segment value. Two-way bindable with `[(value)]`.
disabledbooleanfalseWhether all segments are disabled. Two-way bindable with `[(disabled)]`.

Types

SegmentOption

FieldTypeDescription
valuestringValue emitted when this segment is selected.
labelstringText shown on the segment button.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.