Skip to content

Select

Free

Pick one value, or several, from a list that opens under the field. The field has the look of Input, and the list works the same on every device.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Pass items (value to label), so SelectValue shows the label and not the raw value.

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

role-select.tsx

Select

PropTypeDefaultDescription
From Base UISelect.RootBase UI docs
childrenReactNode—
inputRefRef<HTMLInputElement>—A ref to access the hidden input element.
namestring—Identifies the field when a form is submitted.

SelectTrigger

<button>
PropTypeDefaultDescription
size"default""lg""sm""xs"—
classNamestring—
From Base UISelect.TriggerBase UI docs
childrenReactNode—
disabledboolean—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.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

SelectScrollUpButton

<div>
PropTypeDefaultDescription
classNamestring—
From Base UISelect.ScrollUpArrowBase UI docs
keepMountedbooleanfalseWhether to keep the HTML element in the DOM while the select popup is not scrollable.
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.

SelectScrollDownButton

<div>
PropTypeDefaultDescription
classNamestring—
From Base UISelect.ScrollDownArrowBase UI docs
keepMountedbooleanfalseWhether to keep the HTML element in the DOM while the select popup is not scrollable.
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.

SelectContent

<div>
PropTypeDefaultDescription
classNamestring—
arrowbooleanfalseShow an arrow that points at the trigger. The gap grows from 4px to 8px.
backdropbooleanfalsePut a clear layer under the popup (Base UI Select.Backdrop), for example to dim it.
portalProps—Other Base UI props of the inner parts. A className here adds to the component classes.
positionerProps—
backdropPropsPopupPartProps<SelectBackdropProps>—
arrowPropsPopupPartProps<SelectArrowProps>—
listProps—
scrollUpButtonPropsSelectScrollUpButtonProps—
scrollDownButtonPropsSelectScrollDownButtonProps—
From Base UISelect.PopupBase UI docs
childrenReactNode—
finalFocus—Determines the element to focus when the select 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.

SelectItem

<div>
PropTypeDefaultDescription
classNamestring—
From Base UISelect.ItemBase UI docs
childrenReactNode—
valueanynullA unique value that identifies this select item.
disabledbooleanfalseWhether the component should ignore user interaction.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it for a list that people can read through with no search.
  • Use multiple to pick several values.
  • Use SelectGroup and SelectGroupLabel to group the items.
  • Use a null item to let people clear the value.
  • For a long list that needs search, use a Combobox.
  • For free text with suggestions, use an Autocomplete.
  • For a few options that all stay in view, use a Segmented Control.
  • For a list of actions, use a Menu.
EnterorSpaceOn the trigger, opens the list. In the list, picks the highlighted item.
Down ArroworUp ArrowOpens the list, then moves the highlight.
LettersOn the closed trigger, picks the matching item. In the open list, moves the highlight to it.
EscapeCloses the list.

It is a Base UI Select. The trigger is a combobox, and the popup is a listbox.

SelectLabel names the trigger. A press on it focuses the trigger and does not open the list.

A letter key jumps to the item that starts with it. Pass label on an item whose children are not plain text.

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. AddedSelect, with Animated Chevrons Up Down Icon, Separator.
Open the release