Skip to content

Native Select

Free

A select that opens the built-in list of the browser or the phone. It has the look of Select and works in a Field with a label and errors.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Import Native Select and compose its parts.

native-select.tsx

NativeSelect

<select>
PropTypeDefaultDescription
size"default""lg""sm""xs""default"
classNamestring—Classes for the wrapper. It sets the width (w-full by default; shadcn: w-fit).
htmlSizenumber—The native size attribute: how many rows the list box shows. Over 1, the select is a list box (with or without multiple) and gets the list-box look, with no chevron. The size prop is the control size (xs, sm, default, lg), as on every form component.
From Base UIField.ControlBase UI docs
onValueChange—Callback fired when the value changes. Use when controlled.
...props<select> attributes—Every other attribute goes to the <select>, with a ref.

NativeSelectOption

<option>
PropTypeDefaultDescription
...props<option> attributes—Every other attribute goes to the <option>, with a ref.

NativeSelectOptGroup

<optgroup>
PropTypeDefaultDescription
...props<optgroup> attributes—Every other attribute goes to the <optgroup>, with a ref.
  • Use it on phones, where the system picker is easy to use.
  • Use it in a form that must work before the JavaScript loads.
  • Put it in a Field, so the label, description, and errors reach it.
  • For search, icons, rich rows, or a read-only state, use a Select.
  • To type and filter a long list, use a Combobox.
Spaceor↑ ↓Opens the list of the browser.
TabMoves focus to the next control.

It is a real select element, so the browser and the screen reader know it.

A Field label names it, and a click on the label focuses it.

  1. AddedNative Select.
Open the release