Skip to content
Playground

Native Select

A native HTML select styled with Zenos form surfaces and browser-native behavior.

Native Select styles the platform <select> while preserving native keyboard interaction, form submission, validation, and mobile selection interfaces. Use Select when you need a custom popup, animation, or richer option content.

Uses the browser and operating system selection interface.

TSX
import { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "@zentara-co/zenos-ui";
TSX
<NativeSelect defaultValue="production" name="environment">  <NativeSelectOption value="development">Development</NativeSelectOption>  <NativeSelectOption value="staging">Staging</NativeSelectOption>  <NativeSelectOption value="production">Production</NativeSelectOption></NativeSelect>

value, defaultValue, and onChange follow the native React select contract. The visible selected text comes from the matching option label, while form submission uses its value.

Native Select shares the form-control surfaces used by Input and Select: default, filled, and none.

Use NativeSelectOptGroup to label related options. Native grouping and disabled options remain available to browsers and assistive technology.

Native Select inherits disabled, required, invalid state, labels, descriptions, and errors from Field.Root. These states also remain available as native select attributes.

This value is managed by your organization.

Set size="sm | md | lg" to match neighboring controls. Without an explicit size, compact density uses sm and comfortable density uses md.

The indicator uses logical inline positioning, so it moves to the correct edge in right-to-left layouts. Option text and the browser’s selection interface follow the nearest HTML dir value.

Variants

defaultfillednone

Sizes

smmdlg
NativeSelect
NativeSelectOption
NativeSelectOptGroup

API

PropTypeDefaultDescription
value / defaultValue string | string[] — Native controlled or initial selected value.
onChange ChangeEventHandler<HTMLSelectElement> — Receives the native select change event.
size sm | md | lg md Visual control height; compact density defaults to `sm`.
variant default | filled | none default Form-control surface treatment.
wrapperClassName string — Classes applied to the relative wrapper that positions the icon.
disabled / required / name / multiple native select props — Preserves browser validation, submission, and selection behavior.
NativeSelectOption OptionHTMLAttributes<HTMLOptionElement> — Native option with a stable slot and theme-aware colors.
NativeSelectOptGroup OptgroupHTMLAttributes<HTMLOptGroupElement> — Native labeled option group.
native props SelectHTMLAttributes<HTMLSelectElement> — Forwards native attributes, events, aria-*, data-*, className, style, and the select ref.

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

Associate Native Select with Field.Label or an accessible label. Keep the first placeholder option disabled when it is not a valid choice, and use required for native validation. Avoid replacing option labels with color alone; native option styling varies between browsers and operating systems.