ComponentClient component

Combobox

A searchable controlled option picker composed from Command and Popover.

Installation

Preview

Usage

tsx
import { Combobox } from "@/components/ui/combobox"

<Combobox
  options={[
    { value: "next", label: "Next.js" },
    { value: "vite", label: "Vite" },
  ]}
  placeholder="Select framework"
/>

API reference

PropTypeDefaultDescription
optionsComboboxOption[]Searchable values and display labels.
valuestringControlled selected value.
onValueChange(value: string) => voidRuns when an option is selected.
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.