- Docs
- Components
- Dates
Date range picker
One field for a range: typed in either order, chosen in a range calendar, or a preset in one step.
- Import
- @qeetrix/react/experimental
- Status
- ExperimentalSince 0.0.6
- Renders
<input> + calendarServer-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Keyboard
| Keys | What happens |
|---|---|
| AltOption ↓ | In the field: opens the calendar. |
| Enter | Reads what's typed; in the calendar, picks an end. |
| Escape | First undoes a half-chosen range, then closes; focus returns. |
02
Behaviour
- Typed ranges
- Any separator, either order; a range that can't be read, or whose ends aren't allowed, keeps its text and makes the field invalid.
- The button
- Named after the field.
- The calendar
- RangeCalendar, in a popover as wide as the field: each step announced.
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