Select
Choose an option from a native list.
alpina-ui/ui/selectPaper desk
Trim size
Sheet dimensions
Usage notes
Use native selection for a short, familiar set of options. The validation rule follows the logical start of the control in either writing direction.
When to use
Offer a short set of known values, such as a preferred delivery method, inside a form.
When to avoid
Use search for a long unfamiliar list where readers need to match part of a name.
Accessibility
Label the select and preserve the native keyboard interaction. Give the empty option a distinct meaning when the field is optional.
| Key | Action |
|---|---|
| Tab / Shift+Tab | Focus or leave a closed select. |
| Space / ↓ | Open the single-choice picker. |
| ↑ / ↓ | Move through enabled options in the open picker. |
| Home / End | Move to the first or last enabled option in the open picker. |
| Type | Find an option by its label in the open picker. |
| Enter | Confirm the highlighted option and return focus to the select. |
| Escape | Close the picker and keep the previously selected value. |
Content
Use parallel names for the options. Choose one short noun phrase per option and test the longest in its collapsed state.
- Use
- Delivery method / By post
- Avoid
- Choose / Option 1
Copy in four languages
- German
- Versandart10 characters
- French
- Mode d’envoi12 characters
- Italian
- Modalità di invio17 characters
- Romansh
- Moda da spediziun17 characters
npx --no-install alpina add select