Import Native Select and compose its parts.
native-select.tsx
NativeSelect
<select>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""lg""sm""xs" | "default" | |
| class | string | — | Classes for the wrapper. It sets the width (w-full by default; shadcn: w-fit). |
| html | number | — | The native size attribute: how many rows the list box shows. Over 1, the select is a list box (with or without multiple) and gets the list-box look, with no chevron. The size prop is the control size (xs, sm, default, lg), as on every form component. |
From Base UIField.ControlBase UI docs | |||
| on | — | Callback fired when the value changes. Use when controlled. | |
| ...props | <select> attributes | — | Every other attribute goes to the <select>, with a ref. |
NativeSelectOption
<option>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <option> attributes | — | Every other attribute goes to the <option>, with a ref. |
NativeSelectOptGroup
<optgroup>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <optgroup> attributes | — | Every other attribute goes to the <optgroup>, with a ref. |
| Spaceor↑ ↓ | Opens the list of the browser. |
|---|---|
| Tab | Moves focus to the next control. |





