Components › Forms
Combobox
A select with a search field, for option lists too long to scan.
Installation
npx plankui@latest add comboboxUsage
import { Combobox } from "@/components/ui/combobox";
<Combobox options={[{ value: "vite", label: "Vite" }]} value={v} onValueChange={setV} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| options | { value: string; label: string; description?: string }[] | required | Choices. |
| value / onValueChange | string / (v) => void | Controlled value. | |
| placeholder | string | "Select…" | Shown with nothing chosen. |
| searchPlaceholder | string | "Search…" | Search field hint. |