- Docs
- Components
- Forms
Select
One option, or several, from up to about fifteen: a field that opens its list below.
- Import
- @qeetrix/react
- Status
- StableSince 0.0.2
- Renders
<button> + listServer-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Keyboard
| Keys | What happens |
|---|---|
| EnterSpace | Opens the list; chooses the highlighted option. |
| ↑↓ | Opens the list, and moves through it, skipping disabled options. |
| A–Z | Jumps to the option that starts with the letter. |
| Escape | Closes the list; focus stays on the trigger. |
02
Behaviour
- Name
- Its Field's label names the trigger; without one, aria-label.
- Role
- The trigger opens a listbox; each option is an option, the chosen one selected.
- Forced colours
- The highlighted option draws in Highlight.
03
Tested
On every change, before it ships.
- axe, WCAG 2.2 A and AA, in Chromium on every pull request
- Firefox and WebKit every night
- Forced colours, reduced motion and right to left
- Every field shares one height and edge: a test checks them together