Combobox
Searchable select pattern using Popover + Command.
Combobox
Installation
1pnpm dlx shadcn@latest add @glasswave/comboboxUsage
1import { Combobox, type ComboboxOption } from "glasswave";2 3const options: ComboboxOption[] = [4 { value: "a", label: "Alpha", keywords: ["first"] },5 { value: "b", label: "Beta" },6];7 8<Combobox options={options} value={value} onValueChange={setValue} />API Reference
Combobox
| Prop | Type | Default |
|---|---|---|
options | ComboboxOption[] | — |
value | string | null | — |
onValueChange | (value: string | null) => void | — |
placeholder | string | "Select…" |
searchPlaceholder | string | — |
emptyText | string | — |
disabled | boolean | false |
ComboboxOption is { value: string; label: string; keywords?: string[] }.