Combobox also Multi select
A select you can type in, an autocomplete (Mantine's searchable Select and MultiSelect; for free-form tags, ray-tags-input): typing filters the options; multiple keeps chips; creatable adds new values; clearable, max-values, groups, a result limit.
Pick, type or remove: the values show here.
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-combobox> · RayCombobox
The WAI-ARIA combobox pattern (a text field with a listbox popup; the active option is aria-activedescendant). Arrows move, Enter picks, Escape closes (then clears with clearable), Backspace in an empty field removes the last chip. The form gets one entry per value. On a touch screen the list opens under the field while the keyboard is up, and little room is left for it: for free-form tags with suggestions (multiple creatable), ray-tags-input keeps them in view with no popup.
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
value | value (initial) | string | The chosen value; an array with multiple. The value attribute: "a,b" with multiple. | |
data | — | array | Options instead of child <option>/<optgroup> elements. | |
multiple | multiple reflects | boolean | Several values, shown as chips. | |
placeholder | placeholder | string | Shown while empty. | |
creatable | creatable | boolean | What was typed can be added when no option matches it ("+ Create …"); fires ray-create. | |
clearable | clearable | boolean | A button that clears the value. | |
maxValues | max-values | number | With multiple: at most this many. | |
limit | limit | number | At most this many options shown (large lists: keep typing). | |
nothingFound | nothing-found | string | No matches (text combobox.nothing-found) | Shown when nothing matches. |
open | open reflects | boolean | The dropdown is shown. |
| Event | Description |
|---|---|
change | The value changed (read value). |
input | Same moment as change. |
ray-create | A new value was created from the typed text. |
ray-open | The dropdown opened. |
ray-close | The dropdown closed. |
| Slot | Description |
|---|---|
| (default) | <option> and <optgroup> elements. |
| Part | Description |
|---|---|
input | The text field. |
chips | The chips container. |
chip | A chip. |
clear | The clear button. |
dropdown | The listbox. |
option | An option. |
Texts
What it writes itself, in English; setStrings() translates them (Getting started: Languages).
| Key | English |
|---|---|
combobox.clear | Clear |
combobox.remove | Remove {label} |
combobox.create | + Create “{query}” |
combobox.more | {count} more: keep typing |
combobox.nothing-found | No matches |