Combobox
Searchable select built by combining Command inside a Popover.
Installation
1
Run the CLI
$npx particleui-cli add combobox
Usage
TSX
import { Combobox } from "@/components/ui/combobox"
export default function Example() {
return <Combobox />
}Props
| Prop | Type | Default | Required |
|---|---|---|---|
| options | ComboboxOption[] | — | yes |
| value | string | — | no |
| onValueChange | (value: string) => void | — | no |
| placeholder | string | "Select option..." | no |
| searchPlaceholder | string | "Search..." | no |
| emptyText | string | "No option found." | no |
| className | string | — | no |
| disabled | boolean | — | no |
Details
Source filecomponents/ui/combobox.tsx
Typeui
Categoriesforms, core
npm dependencieslucide-react
Registry deps
Claude skill—