Skip to main content
  1. Docs
  2. Components
  3. Dates

Range calendar

A Calendar that chooses a range: two picks, a band between them, every step announced.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.6
Renders
<table role="grid">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Keyboard

KeysWhat happens
EnterSpacePicks an end: the first, then the second.
EscapeUndoes a half-chosen range.
←→↑↓As Calendar's: by day and week; the half-chosen range follows focus.

02

Behaviour

Selection
Every day in the range is selected, and each step is announced.
Order
Picking a day before the first swaps the ends; the same day twice is one day.
Ruled-out days
They can't be an end, and stay grey inside a range.

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 — Range calendarChangelog