Native Select

The browser's own select, styled as a field.

@paneui/theme@paneui/icons@paneui/control-sizeclass-variance-authority

Installation

pnpm dlx shadcn@latest add @paneui/native-select

Usage

Examples

Sizes

When to use

Prefer it to Select on touch devices, in long forms and wherever the platform picker helps. Use Select when options need icons or custom rows.

API Reference

NativeSelect

className goes on the wrapper, so width utilities apply to the field. Also accepts every prop of select.

size= "default"
"xs" | "sm" | "default" | "lg"
Height (24 / 28 / 32 / 36px). Follows a sized Field.
htmlSize
number
The native size attribute.
PropTypeDefaultDescription
size"xs" | "sm" | "default" | "lg""default"Height (24 / 28 / 32 / 36px). Follows a sized Field.
htmlSizenumber—The native size attribute.

NativeSelectOption

Also accepts every prop of option.

NativeSelectOptGroup

Also accepts every prop of optgroup.