

Every state


default


empty


focus


open


search


no-match


filled


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "skills" | Input id; the listbox, option, description and error ids hang off it. |
| name | string | "skills" | Form name; one hidden input per chosen value. |
| label | string | "Skills" | Field label, also the listbox name. |
| description | string | "Choose all that apply." | Line under the field. |
| placeholder | string | "Search skills" | Placeholder while nothing is chosen. |
| options | { value: string; label: string }[] | ten made-up skills | The options, in list order. |
| defaultValue | string[] | ["research", "ux-writing"] | Values chosen at the start. |
| defaultOpen | boolean | – | Open the list at the start (for previews). |
| onChange | (values: string[]) => void | – | Called with the chosen values after every change. |
| emptyLabel | (query: string) => string | "No skills match “…”." | What the list says when nothing matches. |
| error | string | – | Error under the field; marks the input invalid. |
| disabled | boolean | – | Disables the field, the chips and the list. |
| className | string | – | Extra classes on the field. |
More multi-selects
All 6multi-select-02 is in UI ProGet UI Pro, €199


