Combobox
StableAutocomplete input and command palette with a list of suggestions.
Examples
Basic Usage
tsx
export function ComboboxDemo() {
const [value, setValue] = React.useState("");
return (
<Combobox
label="Framework"
placeholder="Select framework..."
searchPlaceholder="Search frameworks..."
options={frameworks}
value={value}
onChange={setValue}
/>
);
}Neon Variant
Combobox uses the Command palette under the hood, so it automatically inherits the Neon styling for both the trigger and the popup.
tsx
<Combobox variant="neon" label="Command" />API Reference
| Property | Description | Type | Default |
|---|---|---|---|
| options | Array of { value: string, label: string } objects. | ComboboxOption[] | - |
| value | The controlled value. | string | - |
| onChange | Event handler called when value changes. | (value: string) => void | - |
| variant | Visual style for trigger and dropdown. | "default" | "neon" | "glass" | - |
| searchPlaceholder | Placeholder for the internal search input. | string | - |
| emptyText | Text to display when no results are found. | string | - |