Components
← All components

Date Range Picker

stimeo--date-range-picker

A two-point date range picker with preview and presets, derived from Calendar.

  • Date Picker Dialog

The stimeo--date-range-picker controller builds on the Calendar grid model to add two-point range selection. The first click sets the start and enters selecting mode (the range previews to the hovered/focused day); the second confirms the end, auto-swapping when it precedes the start. Range endpoints are exposed to assistive tech via aria-selected, while inner cells use data-in-range for visual painting only. Grid keyboard navigation uses roving tabindex, presets (today / last 7 days / this month) jump the view, and Escape abandons an in-progress selection. The confirmed range is mirrored to a live status region and to hidden start/end fields. Behavior only.

running

Keyboard

KeyAction
Moves focus to the previous day, transitioning to the previous month automatically if crossing boundaries.
Moves focus to the next day, transitioning to the next month automatically if crossing boundaries.
Moves focus to the same day of the previous week, transitioning to the previous month if necessary.
Moves focus to the same day of the next week, transitioning to the next month if necessary.
PageUp Moves focus to the same day of the previous month.
PageDown Moves focus to the same day of the next month.
Home Moves focus to the first day of the current week.
End Moves focus to the last day of the current week.
Enter / Space Confirms the focused day as the start, then the end of the range.
Escape Discards an in-progress selection (the confirmed range is kept).