Native Select
The browser's own select, styled as a field.
Installation
pnpm dlx shadcn@latest add @paneui/native-selectUsage
Examples
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.
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
sizeattribute.
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "xs" | "sm" | "default" | "lg" | "default" | Height (24 / 28 / 32 / 36px). Follows a sized Field. |
| htmlSize | number | — | The native size attribute. |