Autocomplete
A free-text input with suggestions.
Disabled
With label
Sizes
With icon
Multiple
Angular Svelte
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
multiple | boolean | false | Pick several values, shown as removable chips; binds `values`. |
options | readonly string[] | [] | Suggestions to filter against the typed text. |
placeholder | string | 'Search...' | Placeholder text for the input. |
empty | string | 'No results found.' | Message shown when no suggestion matches. |
name | string | '' | Native `name` attribute for the input. |
size | AutocompleteSize | 'default' | Height and font size of the input. |
icon | string | '' | Optional leading icon, given as an SVG path `d` string. |
Two-way models
Bind with [(name)], or one-way as an input.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '' | Current text in the input. Two-way bindable with `[(value)]`. |
values | readonly string[] | [] | Selected values shown as chips (multiple mode). Two-way bindable with `[(values)]`. |
disabled | boolean | false | Whether 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.