Native Select

A styled native select element.

Installation

  1. Add the registryOnce per project
  2. Add native-select

Usage

A native select uses the platform's own picker, which works well on phones. Its options can only be text; for anything richer, use a Select.

Composition

Examples

With a label

A FieldLabel in the same Field names the select. Without one, give it an aria-label.

Sizes

Groups

Group options with NativeSelectOptGroup.

Disabled

Invalid

Set invalid on the Field and explain the problem with a FieldError.

Props

className goes to the wrapper <div>, so set the width there.

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.

NativeSelect