Skip to content

Combobox

Free

Type to filter a list, then pick one value or several as chips. The value is always one of the items, so it works as a select with search.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Pass items to the root, and render each row from the list function. Add multiple and chips for many values.

The sample also uses Field. One command adds them with this item:

assignee-field.tsx

Combobox

PropTypeDefaultDescription
From Base UICombobox.RootBase UI docs
childrenReactNode—
namestring—Identifies the field when a form is submitted.
formstring—Identifies the form that owns the internal input. Useful when the combobox is rendered outside the form.

ComboboxInputGroup

<div>
PropTypeDefaultDescription
classNamestring—
size"default""lg""sm""xs""default"24, 28, 32, or 36px: the field sizes of controlVariants, the one source. A type from comboboxInputGroupVariants would lose its literal values through three extend steps.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ComboboxInput

<input>
PropTypeDefaultDescription
classNamestring—
variant"bare""frame""popup""frame"frame (default): in a ComboboxInputGroup. popup: the search row at the top of the popup. bare: no look, for a render field that keeps its own.
From Base UICombobox.InputBase UI docs
disabledbooleanfalseWhether the component should ignore user interaction.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<input> attributes—Every other attribute goes to the <input>, with a ref.

ComboboxTrigger

<button>
PropTypeDefaultDescription
classNamestring—
size"default""lg""sm""xs"—24, 28, 32, or 36px: the field sizes of controlVariants.
variant"field""icon""icon"icon (default): the chevron button at the end of a ComboboxInputGroup. Its accessible name is aria-label ("Show options" by default; translate it). field: a Select-like field that shows the value; the input then sits in the popup.
From Base UICombobox.TriggerBase UI docs
disabledbooleanfalseWhether the component should ignore user interaction.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

ComboboxClear

<button>
PropTypeDefaultDescription
classNamestring—
From Base UICombobox.ClearBase UI docs
disabledbooleanfalseWhether the component should ignore user interaction.
keepMountedbooleanfalseWhether the component should remain mounted in the DOM when not visible.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

ComboboxChipsInput

<input>
PropTypeDefaultDescription
classNamestring—
From Base UICombobox.InputBase UI docs
disabledbooleanfalseWhether the component should ignore user interaction.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<input> attributes—Every other attribute goes to the <input>, with a ref.

ComboboxChip

<div>
PropTypeDefaultDescription
classNamestring—
showRemovebooleantrueShow the remove button (default). Without it, Backspace and Delete still remove the chip.
removeLabelstring—The accessible name of the remove button. Default: "Remove " and the text of the chip.
rounded"default""full"—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ComboboxContent

<div>
PropTypeDefaultDescription
classNamestring—
arrowbooleanfalseShow an arrow that points at the frame. The gap grows from 4px to 8px.
backdropbooleanfalsePut a clear layer under the popup (Base UI Combobox.Backdrop).
portalProps—Other Base UI props of the inner parts. A className here adds to the component classes.
positionerProps—
backdropPropsPopupPartProps<ComboboxBackdropProps>—
arrowPropsPopupPartProps<ComboboxArrowProps>—
From Base UICombobox.PopupBase UI docs
initialFocus—Determines the element to focus when the popup is opened. - false: Do not move focus. - true: Move focus based on the default behavior (first tabbable element or popup). - RefObject: Move focus to the ref element. - function: Called with the interaction type (mouse, touch, pen, or keyboard). Return an element to focus, true to use the default behavior, or false/undefined to do nothing.
finalFocus—Determines the element to focus when the popup is closed. - false: Do not move focus. - true: Move focus based on the default behavior (trigger or previously focused element). - RefObject: Move focus to the ref element. - function: Called with the interaction type (mouse, touch, pen, or keyboard). Return an element to focus, true to use the default behavior, or false/undefined to do nothing.
anchor—An element to position the popup against. By default, the popup will be positioned against the trigger.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ComboboxList

<div>
PropTypeDefaultDescription
classNamestring—
From Base UICombobox.ListBase UI docs
children—
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ComboboxItem

<div>
PropTypeDefaultDescription
classNamestring—
From Base UICombobox.ItemBase UI docs
childrenReactNode—
onClick—An optional click handler for the item when selected. It fires when clicking the item with the pointer, as well as when pressing Enter with the keyboard if the item is highlighted when the Input or List element has focus.
indexnumber—The index of the item in the list. Improves performance when specified by avoiding the need to calculate the index automatically from the DOM.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ComboboxStatus

<div>
PropTypeDefaultDescription
classNamestring—
status"empty""error""loading""ready""ready"The load state of the search. Default ready. loading: the 16px spinner (the one shared spinner size) before the text. empty and error show as ready: the text says why.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it when the list is long and the value must be one of its items.
  • Use multiple with ComboboxChips to pick many values.
  • Use filter={null} when a server does the search.
  • Use createComboboxItems so the form gets an id and the input shows a label.
  • For free text with suggestions, use an Autocomplete.
  • For a short list with no typing, use a Select.
  • For free text that turns into tags, use a Tags Input.
  • For values in a tree of levels, use a Cascader.
Down ArroworUp ArrowOpens the list, then moves the highlight.
EnterPicks the highlighted item.
EscapeCloses the list. With the list closed, clears the value and the text.
HomeorEndMoves the caret to the start or the end of the text.
Left ArrowWith multiple, at the start of the text, moves focus to the last chip. Right to left uses Right Arrow.
BackspaceWith multiple, in an empty input, removes the last chip.
BackspaceorDeleteOn a chip, removes it.

The input is a combobox, and the list is a listbox. The active row moves while focus stays in the input.

A Field with a FieldLabel names the input. The clear and trigger buttons stay out of the tab order.

On a coarse pointer, rows grow to 44px high. The text stays 14px.

Open
popup · 150ms · ease-panel (0.2, 0.4, 0.2, 1) · fades in and scales from 95%
Close
popup-exit · 120ms · ease-out (0, 0, 0.2, 1)
  1. AddedCombobox, with Animated Chevrons Up Down Icon, Input Group, Separator, Spinner.
Open the release