Combobox
Searchable select combining a text input with a filterable dropdown list.
Examples
Basic
A dropdown list with a trigger button.
With Search
Combobox with a text filter input inside the dropdown.
Disabled
A combobox that cannot be interacted with.
With Groups
Options organised into labelled groups.
Multiple Selection
Combobox allowing multiple items to be selected.
Invalid
Combobox with error border.
Installation
pnpm add @rokle/components @rokle/tokensInstalls with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.
Usage
import { Combobox } from "@rokle/components";import { Combobox } from "@rokle/components";
export function Example() {
return <Combobox />;
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| options | { label: string; value: string }[] | - | List of selectable options. |
| value | string | - | Currently selected value. |
| onValueChange | (value: string) => void | - | Called when selection changes. |
| placeholder | string | "Search…" | Input placeholder text. |