

Every state


default


focus


loading


results


empty


error


filled


invalid


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "topics" | Input id; the listbox, option, description and error ids hang off it. |
| name | string | "topics" | Form name; one hidden input per chosen value. |
| label | string | "Topics" | Field label, also the listbox name. |
| description | string | "We send you new articles on these topics." | Line under the field. |
| placeholder | string | "Search topics" | Placeholder of the search input. |
| loadOptions | (query: string, signal: AbortSignal) => Promise<{ value: string; label: string; detail?: string }[]> | a made-up topic list after 600 ms | Finds the options for what was typed; reject to show the error state. Earlier searches are aborted. |
| debounce | number | 300 | Milliseconds after the last key before searching. |
| minChars | number | 2 | Typed characters before a search starts. |
| defaultValue | { value: string; label: string }[] | two topics | Options chosen at the start. |
| onChange | (options: { value: string; label: string }[]) => void | – | Called with the chosen options after every change. |
| error | string | – | Error under the field; marks the input invalid. |
| disabled | boolean | – | Disables the search and the chips. |
| className | string | – | Extra classes on the field. |
More multi-selects
All 6multi-select-01 is in UI ProGet UI Pro, €199


