Components › Forms

Combobox

A select with a search field, for option lists too long to scan.

Installation

npx plankui@latest add combobox

Usage

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

<Combobox options={[{ value: "vite", label: "Vite" }]} value={v} onValueChange={setV} />

API reference

PropTypeDefaultDescription
options{ value: string; label: string; description?: string }[]requiredChoices.
value / onValueChangestring / (v) => voidControlled value.
placeholderstring"Select…"Shown with nothing chosen.
searchPlaceholderstring"Search…"Search field hint.

View the source on GitHub