Toggle group

A group of toggle buttons.

Multiple

Vertical

Disabled

Sizes

Segmented

API reference

bui-toggle-group

Inputs

PropTypeDefaultDescription
type"multiple" | "single"'single'Selection mode: single value or an array of values.
orientation"horizontal" | "vertical"'horizontal'Layout direction of the group.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
valueToggleValuenullSelected value(s). Two-way bindable with `[(value)]`.

button[buiToggleGroupItem]

Inputs

PropTypeDefaultDescription
valuestring''Value this item contributes to the parent group's selection.
disabledbooleanfalseWhether this item is disabled.

Types

ToggleValue

string | string[]

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