Combobox
NEWA searchable select where one highlight glides between options as you move (keyboard or mouse), the match underlines as you type, and the check pops in on selection.
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/combobox
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| options | ComboboxOption[] | undefined | Options with value, label, description, icon, keywords, disabled |
| value | string | null | undefined | Controlled selected value |
| defaultValue | string | null | null | Initial value (uncontrolled) |
| onValueChange | (value: string | null) => void | undefined | Selection change callback |
| placeholder | string | 'Select…' | Trigger placeholder |
| searchPlaceholder | string | 'Search…' | Search input placeholder |
| emptyText | string | 'No results.' | Empty state message |
| align | 'start' | 'end' | 'start' | Popover alignment |
| disabled | boolean | false | Disables the trigger |
| className | string | undefined | Additional class for the wrapper (set width, e.g. w-72) |
| aria-label | string | placeholder | Accessible name for the combobox |