Autocomplete

A free-text input with suggestions.

Disabled

With label

Sizes

With icon

Multiple

Angular Svelte

API reference

Inputs

PropTypeDefaultDescription
multiplebooleanfalsePick several values, shown as removable chips; binds `values`.
optionsreadonly string[][]Suggestions to filter against the typed text.
placeholderstring'Search...'Placeholder text for the input.
emptystring'No results found.'Message shown when no suggestion matches.
namestring''Native `name` attribute for the input.
sizeAutocompleteSize'default'Height and font size of the input.
iconstring''Optional leading icon, given as an SVG path `d` string.

Two-way models

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

PropTypeDefaultDescription
valuestring''Current text in the input. Two-way bindable with `[(value)]`.
valuesreadonly string[][]Selected values shown as chips (multiple mode). Two-way bindable with `[(values)]`.
disabledbooleanfalseWhether the input is disabled. Two-way bindable with `[(disabled)]`.

Types

AutocompleteSize — Height and font size of the autocomplete input.

"default" | "lg" | "sm"

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