Skip to content
Playground

Select

Choose a predefined value from an accessible anchored list.

Choose a predefined value from an accessible anchored list.

After selection, Select.Value displays the selected item’s label while value, onValueChange, and native form submission continue to use its underlying value.

Backed by Base UI Select for upstream behavior and configuration. Zenos owns the public API, styling, and composition shown on this page.

default uses the bordered input surface, filled uses the gray subtlest fill, and none is borderless. Set variant on Select.Root; the trigger inherits it unless overridden.

Every Select part accepts className. Style the trigger directly, then style Select.Content and its listClassName separately because the popup is rendered in a portal. Stable data-slot and Base UI state attributes can target highlighted and selected options without replacing the component’s behavior.

A branded treatment built from semantic color tokens.

Set size on Select.Root to keep the trigger consistent with neighboring form controls. A trigger-level size can override the root when needed.

Disable the root or wrap the field in Field.Root with disabled when the entire selection is unavailable. For validation, set Field.Root to invalid; the trigger inherits aria-invalid and matches Input invalid styling.

This selection is managed by your organization.

Select.Content scrolls by default when options exceed the popup height (up to 16rem or the available viewport space). The list is the scroll container; wheel, touch, and keyboard navigation keep working, and hover scroll arrows appear on pointer devices for long lists. Set scrollable={false} to render a static list (same padding as Autocomplete) or pass listClassName to adjust max height.

Long lists scroll inside the popup. Hover the top or bottom edge to step through options with the scroll arrows.

Use groups to divide a longer option list into meaningful sections. Individual items can be disabled without disabling the rest of the Select.

Pair value with onValueChange when application state owns the selection. Select.Content accepts side, align, and collision options and handles the portal, positioner, popup, scroll arrows, and list internally.

Current value: review

The option list fades, scales, and moves from its resolved side when opening, then reverses that movement when closing. Reduced-motion preferences remove the animation automatically.

Open each select. The first list animates in and out. disableMotion makes the second appear and disappear immediately.

Variants

defaultfillednone

Sizes

smmdlg
Select.Root
Select.Trigger
Select.Value
Select.Content
Select.Group
Select.GroupLabel
Select.Item
Select.Separator

API

PropTypeDefaultDescription
value string — Controlled selected value.
defaultValue string — Initial uncontrolled value.
onValueChange (value: string | null, eventDetails) => void — Runs when the selected value changes.
open / defaultOpen boolean — Controlled or initial popup visibility.
onOpenChange (open: boolean, eventDetails) => void — Runs when popup visibility changes.
size sm | md | lg md Control height inherited by the trigger.
variant default | filled | none default Trigger surface style (`filled` uses the subtle neutral fill).
Trigger.variant default | filled | none — Overrides the visual treatment inherited from Select.Root.
disabled / required / name boolean / boolean / string — Native form-control semantics forwarded through Base UI.
Content.side / align top | right | bottom | left / start | center | end bottom / start Preferred popup placement relative to the trigger.
Content.sideOffset number 4 Space between the trigger and popup.
Content.alignItemWithTrigger boolean false Overlaps the trigger and aligns the selected item with it.
Content.scrollable boolean true Caps popup height and enables list scrolling with optional hover scroll arrows.
Content.disableMotion boolean false Disables the popup enter and exit animation for this instance.
Content.listClassName string — Extra classes on the list inside Content (for example a custom max height).
native props React.Base UI Select props — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Select exposes a combobox trigger and listbox popup through Base UI. Arrow keys open and move through options, Enter or Space selects, and Escape closes the popup and returns focus to the trigger. Home and End move to the first and last available options. Associate the trigger with a visible Field.Label, and preserve disabled and invalid semantics rather than representing them through color alone.