Input with selectable options and search.
123456789101112131415161718192021222324252612345678910111213141516171819202122232425262728293031323334353637383940411234567891011121314151617181920212223241234567891011121314151617181920212223The Combobox is built using a composition of the Popover and Command components.
| Prop | Type | Default | Description |
|---|---|---|---|
options | ComboboxOption[] | — | Array of option objects with value and label (required) |
value | string | — | Selected value (for controlled component) |
onValueChange | (value: string) => void | — | Callback when value changes |
placeholder | string | "Select option..." | Placeholder text for the input |
searchPlaceholder | string | "Search..." | Placeholder text for the search input |
emptyText | string | "No results found." | Text to show when no results found |
disabled | boolean | false | Disable the combobox |
className | string | — | Additional CSS classes |
| ComboboxOption Property | Type | Required | Description |
|---|---|---|---|
value | string | ✓ | Unique value for the option (required) |
label | string | ✓ | Display text for the option (required) |
disabled | boolean | — | Disable this specific option |