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
| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From Base UICombobox.RootBase UI docs | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| children | ReactNode | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | string | — | Identifies the field when a form is submitted. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| form | string | — | Identifies the form that owns the internal input. Useful when the combobox is rendered outside the form. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ComboboxInputGroup
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| 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>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| 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 | |||
| disabled | boolean | false | Whether 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>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| class | string | — | |||||
| 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 | |||||||
| disabled | boolean | false | Whether 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>| Prop | Type | Default | Description | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | ||||||||||||
From Base UICombobox.ClearBase UI docs | ||||||||||||||
| disabled | boolean | false | Whether the component should ignore user interaction. | |||||||||||
| keep | boolean | false | Whether 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>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
From Base UICombobox.InputBase UI docs | |||
| disabled | boolean | false | Whether 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>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| show | boolean | true | Show the remove button (default). Without it, Backspace and Delete still remove the chip. |
| remove | string | — | 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>| Prop | Type | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| arrow | boolean | false | Show an arrow that points at the frame. The gap grows from 4px to 8px. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| backdrop | boolean | false | Put a clear layer under the popup (Base UI Combobox.Backdrop). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| portal | — | Other Base UI props of the inner parts. A className here adds to the component classes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| positioner | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| backdrop | PopupPartProps<ComboboxBackdropProps> | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| arrow | PopupPartProps<ComboboxArrowProps> | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From Base UICombobox.PopupBase UI docs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initial | — | 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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| final | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
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>| Prop | Type | Default | Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||
From Base UICombobox.ItemBase UI docs | |||||||||||||||||||||||||||||
| children | ReactNode | — | |||||||||||||||||||||||||||
| on | — | 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. | |||||||||||||||||||||||||||
| index | number | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| 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. |
| Down ArroworUp Arrow | Opens the list, then moves the highlight. |
|---|---|
| Enter | Picks the highlighted item. |
| Escape | Closes the list. With the list closed, clears the value and the text. |
| HomeorEnd | Moves the caret to the start or the end of the text. |
| Left Arrow | With multiple, at the start of the text, moves focus to the last chip. Right to left uses Right Arrow. |
| Backspace | With multiple, in an empty input, removes the last chip. |
| BackspaceorDelete | On a chip, removes it. |
- SelectPick Select for a short list where people pick with no typing.
- AutocompletePick Autocomplete when the typed text itself is the value and the list only suggests.
- Tags InputType a word and press Enter or a comma, or paste a list, and each word becomes a tag you can remove. It can also suggest tags.
- CommandPick Command to run commands from a search field, such as a command palette, not to set a form value.
Built with
Installs with Combobox







