Skip to content
Forms

Combobox

Searchable single-select with autocomplete.

Import

tsx
import { Combobox } from "@cooud-ui/ui";
bash
npx cooud-ui add combobox

Examples

API Reference

Generated from the component's exported types.

ComboboxProps

PropTypeDefaultDescription
options*
ComboboxOption[]The list of selectable options.
value
stringControlled selected value. Pair with `onValueChange`.
defaultValue
stringInitial value for uncontrolled usage.
onValueChange
(value: string) => voidCalled with the new value when the selection changes.
placeholder
string"Select an option…"Text shown on the trigger when nothing is selected.
searchPlaceholder
string"Search…"Placeholder for the search input inside the popover.
emptyText
string"No results found."Message rendered when no option matches the search.
disabled
booleanfalseDisables the trigger entirely.
className
stringExtra classes for the trigger button.
contentClassName
stringExtra classes for the popover content.
aria-label
stringAccessible name for the trigger when there is no visible label.
aria-labelledby
stringID of an element labelling the trigger.