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

PropTypeDefaultDescription
options*ComboboxOption[] | ComboboxGroup[]Options list
value*string | string[]Selected value(s)
onChange*(value: string | string[]) => voidChange handler
multibooleanfalseMulti-selection mode
labelstringField label
placeholderstring'Select...'Placeholder text