Combobox
Searchable select with autocomplete. Supports single/multi selection and grouped options.
Preview
Usage
import { Combobox } from '@ramtt/ui'
<Combobox
options={[{ value: 'ftp', label: 'FTP' }, { value: 'lthr', label: 'LTHR' }]}
value={metric}
onChange={setMetric}
placeholder="Select metric"
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| options* | ComboboxOption[] | ComboboxGroup[] | — | Options list |
| value* | string | string[] | — | Selected value(s) |
| onChange* | (value: string | string[]) => void | — | Change handler |
| multi | boolean | false | Multi-selection mode |
| label | string | — | Field label |
| placeholder | string | 'Select...' | Placeholder text |