Combobox
Combines text search and single selection in one keyboard-ready control.
@rivetui/comboboxPreview
Explore each composition interactively, then open its code in the same context.
Default
Filter a collection, inspect the empty state, and clear the current selection.
Note
Use the root
disabled prop when the entire control is unavailable.Registry
Installation
Add the component source and its declared dependencies with the shadcn CLI.
Install component
bunx --bun shadcn@latest add @rivetui/comboboxPublic interface
API reference
Component-specific props are listed here. Native element and Base UI props continue to pass through.
Combobox
| Prop | Type | Default |
|---|---|---|
items | readonly Item[] | — |
value | Value | null | — |
defaultValue | Value | null | — |
onValueChange | (value: Value | null, details) => void | — |
open | boolean | — |
defaultOpen | boolean | false |
onOpenChange | (open: boolean, details) => void | — |
autoHighlight | boolean | false |
disabled | boolean | false |
ComboboxLabel
| Prop | Type | Default |
|---|---|---|
htmlFor | string | — |
className | string | — |