UI
← Home

Date Range Picker

A calendar grid for picking a start and end date. Your first pick sets the start, the second the end, and every day in between is highlighted; picking an earlier day than the start swaps the ends so the range stays ordered. Arrow keys move across days and Enter/Space picks the focused one.

  • Axe
  • Name
  • Roving
  • Focus

Preview

January 2024
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

Installation

npx shadcn@latest add https://ui.publictheta.com/r/date-range-picker.json

Conformance

Verified against the @publictheta/ui-spec date-range-picker specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.

  • Axe No WCAG 2 A/AA axe-core violations
  • Name The widget container exposes an accessible name
  • Roving Exactly one tab stop; Arrow keys move within the widget
  • Focus A visible focus indicator appears on keyboard focus (WCAG 2.4.7)

See the full conformance matrix across all components.