ComponentClient component

Combobox

A searchable controlled option picker composed from Command and Popover.

Installation

Preview

Preview style

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.
valuestring—Controlled selected value.
onValueChange(value: string) => void—Runs when an option is selected.
classNamestring—Overrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.