Select
atomsNative <select> with a themed chevron and an options array that adds icon, emoji, hint and optgroup sections to the trigger.
New deployment form
options with group renders native optgroups; hint is the muted right-aligned text; children work as plain <option>s.
medium in eu-west-1 on auto
Sizes, variants and widths
size="sm" matches toolbar height; variant="embedded" is borderless on an elevated surface; chevron={false}; width="auto" hugs the selection.
Spawn with
States
disabled control, disabled options, invalid via Field error, a placeholder-style empty choice and a long label that truncates.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'ghost' | 'embedded' | 'default' | |
invalid | boolean | false | Error state: danger border + aria-invalid. |
compact | boolean | false | @deprecated use `size="sm"`; `size` wins when both are set. |
size | ControlSize | — | Size scale matching Button/SegmentedControl: `sm` also adopts the shared `--control-height-compact` toolbar height so it lines up with siblings. |
chevron | boolean | — | Draw the custom chevron (default). Set false for a bare inline select. |
width | 'full' | 'auto' | 'full' | `auto` sizes to the selected option instead of filling the row. |
grow | boolean | false | Fill the available width of a flex/Cluster row (flex: 1). |
id | string | — | |
aria-describedby | string | null | — | |
aria-invalid | HTMLSelectAttributes['aria-invalid'] | — | |
class | string | '' | |
value bindable | HTMLSelectAttributes['value'] | — | |
options | SelectOption[] | — | Rich option list; rendered instead of `children` when given. |
children | Snippet | — |