Draft. Ported from the shadcn-vue Native select (registry, read 12 November 2026) and restyled with Beehexa tokens. Not yet approved. It uses the text-field focus of decision D29.
Native select is the browser’s own <select> with a Beehexa field around it. The closed box looks like every other field; the open list is drawn by the operating system.
When to use
- To pick one value from a list of about 5 to 15 options in a form: a currency, a warehouse, a page size.
- On phones, where the system list is the easiest to use.
- When the options are plain text and need no icons or descriptions.
When not to use
- For 2 to 5 options people should compare. Show them all with a radio group.
- For a long list people need to search, or options with icons or descriptions. Use Select or Combobox.
- To pick several values. Use checkboxes or a multi-select.
Content
- Order options in a way people expect: by size, by time, or alphabetically.
- If nothing is chosen yet, start with a disabled option that says what to do: “Choose how often”.
- Use
NativeSelectOptGroupto group long lists under short headings.
States
The same as Input: color.border.bold at rest; color.border.focus plus its 2 px inset ring on focus; color.border.danger with aria-invalid="true"; the disabled colours when disabled, with the chevron in color.icon.disabled.
Tokens
| Part | Default | sm |
|---|---|---|
| Height | size.control.default (32 px) |
size.control.small (24 px) |
| Corners | radius.control |
radius.control.small |
| Side padding | space.control.x |
space.control.x.small |
| Text | font.body.default |
font.body.small |
| Chevron | size.icon.default, color.icon.subtle, space.control.gap from the text |
Same |
The open list keeps the system colours (Canvas, CanvasText): it follows the operating system, not the page theme.