Combobox
Autocomplete input with a list of suggestions. Built with Base UI.
Basic
Autocomplete input with a list of suggestions.
Installation
CLI
Also needs
npx @sonojs/ui@latest add button input-group && npm i @base-ui/react lucide-reactUsage
combobox.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | readonly T[] | — | Options passed to the combobox root. |
| multiple | boolean | false | Allow selecting more than one value (use chips). |
| showClear | boolean | false | On ComboboxInput — show a clear button. |
| showTrigger | boolean | true | On ComboboxInput — show the chevron trigger. |
| disabled | boolean | false | Disables the control. |