Combobox

Searchable select built on Popover with real-time filtering, keyboard navigation, and accessible ARIA attributes.

Live Demo

Props

PropTypeDefaultDescription
options{ value, label, disabled? }[][]Array of { value, label, disabled? } objects.
valuestringControlled selected value.
onChange(value: string) => voidCallback when value changes.
placeholderstring'Select...'Placeholder text for the trigger button.
searchPlaceholderstring'Search...'Placeholder for the search input.
emptyTextstring'No results found.'Text shown when no options match the search.
disabledbooleanfalseDisables the combobox.

Usage

import { Combobox } from '@ghiberti85/ui'

const [value, setValue] = useState('')

<Combobox
  options={[
    { value: 'react', label: 'React' },
    { value: 'vue', label: 'Vue' },
    { value: 'svelte', label: 'Svelte', disabled: true },
  ]}
  value={value}
  onChange={setValue}
  placeholder="Select a framework..."
  searchPlaceholder="Search..."
  emptyText="No results found."
/>

View in Storybook

Open in Storybook
Ghiberti UI — Design System