Combobox
Autocomplete input and command palette with filtering.
Installation
npx radk-cli@latest add comboboxUsage
import { Combobox } from "@/components/ui/combobox"const options = [
{ value: "next.js", label: "Next.js" },
{ value: "react", label: "React" },
]
const [value, setValue] = React.useState("")
<Combobox
options={options}
value={value}
onValueChange={setValue}
placeholder="Select a framework..."
/>Props
| Prop | Type | Default |
|---|---|---|
options | { value: string; label: string }[] | Required |
value | string | — |
onValueChange | (value: string) => void | — |
placeholder | string | "Select an option..." |
searchPlaceholder | string | "Search..." |
emptyMessage | string | "No results found." |
className | string | — |