Combobox

A filterable select with typeahead.

Preselected

Disabled

Statuses

Non-searchable

Multiple

API reference

Inputs

PropTypeDefaultDescription
multiplebooleanfalseSelect several options; binds `values` instead of `value`.
optionsreadonly ComboboxOption[][]Available options to filter and choose from.
placeholderstring'Search…'Placeholder text shown in the search input.
searchablebooleantrueWhen false, the field can't be typed in — it just opens the full list (select-like).

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 combobox is disabled. Two-way bindable with `[(disabled)]`.

Types

ComboboxOption

FieldTypeDescription
valuestringValue stored when this option is selected.
labelstringText shown and matched against the search query.
icon?stringOptional leading icon, given as an SVG path `d` string.

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