Skip to main content
  1. Docs
  2. Components
  3. 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

KeysWhat happens
AltOption ↓In the field: opens the calendar.
EnterReads what's typed; in the calendar, picks an end.
EscapeFirst 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
Next — Date range pickerChangelog