Skip to main content

Combobox

Combine text input with dropdown selection, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
itemsComboboxItem[]-
labelstring-Field label above the input.
Field label above the input.
descriptionstring-A line under the input, for what the field expects rather than a restatement of the label.
A line under the input, for what the field expects rather than a restatement of the label.
placeholderstring-Placeholder text.
Placeholder text.
multiplebooleanfalse
defaultValuestring | string[]-The selection on first render: one item's label, or an array of labels with multiple.
The selection on first render: one item's label, or an array of labels with multiple.
clearablebooleantrue
emptyMessagestring-Shown when nothing matches.
Shown when nothing matches.
sizesm | md | lgmd
shapenone | roundedrounded
disabledbooleanfalseBlocks interaction and dims the field.
Blocks interaction and dims the field.
loadingbooleanfalse
animatedbooleantrue
classNamestring-
focusboolean | stringtrue
containerHTMLElement | null-