Skip to content

Forms

Select

Native drop-down in the field style, for one choice out of many options.

  • Experimental
  • Keyboard tested
  • Screen reader not tested yet

Updated 2026-11-12

Playground

Change the props. The controls come from the documented props.
tsx
<Select
  label="Budget"
  name="playground-budget"
  placeholder="Choose a range"
  options={[
    { value: "small", label: "Up to 20k" },
    { value: "large", label: "20k and more" },
  ]}
/>

States

Every variant in every state, side by side. Hover, pressed and focus are shown statically; the default state is interactive.
  • default
  • focus-visible
  • disabled
  • Error: Choose a project type.

    invalid

Usage

When to use

Use a select for one choice out of six or more options, or when space is tight.

When not to use

  • For two to five options people should compare: use RadioGroup.
  • For a yes/no decision: use Checkbox.

How it works

The native select in the field style, with a chevron from the tokens. Keyboard, screen readers and phone pickers work without extra code. A placeholder adds an empty first option (“Choose a project type”), which makes required meaningful.

Content guidelines

The label names the thing chosen. Options are short and parallel. Write the placeholder as an instruction that names the thing: “Choose a project type”.

Do and don’t

Do
  • Use it for six or more options, or when space is tight.
Don’t
  • Don't use it for two to five options people should compare; use RadioGroup.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. labelAlways visible.
  2. input-fieldNative select, 48px, border.control.
  3. iconChevron, decorative.
  4. optionRendered by the operating system's picker.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { Select } from "@/ds";

With placeholder option

Optional with default

Props

Checked against the component's TypeScript type on every build.
Select props
NameTypeDefaultDescription
label (required)string–Visible label.
options (required)SelectOption[]–value and label per option.
placeholderstring–First empty option, e.g. “Choose a project type”. With required, leaving it fails validation.
hintstring–Help text between label and field.
errorstring–Error message; overrides native validation.
optionalbooleanfalseAdds “(optional)” to the label.
messagesValidationMessages–Texts for native validation inside a Form.
…selectSelectHTMLAttributes–Native attributes such as name, required, defaultValue.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by Select
TokenTierValueUtility
input.heightcomponent48px
select.chevroncomponent#555555
spacing.12semantic48px
spacing.4semantic16px

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Tested
Screen readerManualNot tested yet

Keyboard

Select keyboard interactions
KeyAction
TabMoves focus to the select.
Arrow up / downChanges the option.
Space / Alt + Arrow downOpens the option list.

Semantics and focus

  • Native <select>: keyboard, screen readers and mobile pickers work without extra code.
  • Label, hint and error come from Field.