Select

An accessible select (combobox + listbox).

Disabled

Scrollable

Sizes

Options array

Branded

Native

Utility class

With icons

Grouped

Multiple

Reactive form

Control value: banana

API reference

Inputs

PropTypeDefaultDescription
multiplebooleanfalseSelect several options; binds `values` instead of `value`.
optionsreadonly SelectOption[][]Available options to choose from.
placeholderstring'Select…'Text shown on the trigger when nothing is selected.
aria-labelstring''Accessible name for the combobox. Bound from a plain `aria-label="…"` on the host (consumed as an input, so it's applied to the inner combobox button rather than left as a prohibited ARIA attribute on the custom element).

Two-way models

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

PropTypeDefaultDescription
valuestring''Selected option value (single mode). Two-way bindable with `[(value)]`.
valuesreadonly string[][]Selected option values (multiple mode). Two-way bindable with `[(values)]`.
disabledbooleanfalseWhether the select is disabled. Two-way bindable with `[(disabled)]`.

Types

SelectOption

FieldTypeDescription
valuestringValue stored when this option is selected.
labelstringText shown for this option.
disabled?false | trueWhether this option cannot be selected.
icon?stringOptional leading icon, given as an SVG path `d` string.
group?stringOptional group label; consecutive options sharing a group get a header.

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