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
| Prop | Type | Default | Description |
|---|---|---|---|
multiple | boolean | false | Select several options; binds `values` instead of `value`. |
options | readonly SelectOption[] | [] | Available options to choose from. |
placeholder | string | 'Select…' | Text shown on the trigger when nothing is selected. |
aria-label | string | '' | 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.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '' | Selected option value (single mode). Two-way bindable with `[(value)]`. |
values | readonly string[] | [] | Selected option values (multiple mode). Two-way bindable with `[(values)]`. |
disabled | boolean | false | Whether the select is disabled. Two-way bindable with `[(disabled)]`. |
Types
SelectOption
| Field | Type | Description |
|---|---|---|
value | string | Value stored when this option is selected. |
label | string | Text shown for this option. |
disabled? | false | true | Whether this option cannot be selected. |
icon? | string | Optional leading icon, given as an SVG path `d` string. |
group? | string | Optional 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.