options | SelectOption[] | - | |
|
label | string | - | Text above the trigger. |
| Text above the trigger. |
description | string | - | A line under the control, for context on what the choice means. |
| A line under the control, for context on what the choice means. |
placeholder | string | Select… | Shown on the trigger before anything is selected. |
| Shown on the trigger before anything is selected. |
defaultValue | string | - | |
|
value | string | - | Controlled selection. |
| Controlled selection. |
onValueChange | (value: string | null) => void | - | |
|
icon | ReactNode | - | |
|
iconPosition | leading | trailing | leading | |
|
compact | boolean | false | On phones the trigger shows only icon and the chevron. |
On phones the trigger shows only icon and the chevron. |
ariaLabel | string | - | The accessible name, for a select with no visible label. |
| The accessible name, for a select with no visible label. |
size | sm | md | lg | md | |
|
shape | none | rounded | pill | rounded | |
|
disabled | boolean | false | Blocks interaction and dims the whole control, label included. |
| Blocks interaction and dims the whole control, label included. |
required | boolean | false | Appends a red asterisk to the label & sets the trigger's native required attribute. |
Appends a red asterisk to the label & sets the trigger's native required attribute. |
animated | boolean | true | |
|
className | string | - | |
|
focus | boolean | string | true | |
|
container | HTMLElement | null | - | |
|