Combobox
Default
Apple
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
| selected | ComboboxOption[] | — | Chosen options rendered as chips. |
| suggestions | ComboboxOption[] | — | Dropdown options for the current query. |
| onQueryChange | (query: string) => void | — | Called on every keystroke; caller filters suggestions. |
| onAdd | (item: ComboboxOption) => void | — | Called when an option is picked or Enter creates one. |
| onRemove | (value: string) => void | — | Called when a chip is removed. |
| placeholder | string | locale | Input placeholder while nothing is selected. |
| id | string | — | Native input id; prefixes the listbox ids. |
| chip | Snippet<[option, remove]> | — | Custom chip renderer. |
| option | Snippet<[suggestion]> | — | Custom suggestion renderer. |