Date Range Picker Component

Advanced date picker web component from @keenmate/web-daterangepicker with multiple selection modes, keyboard navigation, date restrictions, and custom rendering. Built as a framework-agnostic web component.

Key Features: Single/range/multiple date selection, keyboard navigation, rolling month/year selector, date restrictions (min/max, disabled dates), custom badges and tooltips, validation callbacks, and action buttons.

Input Sizes

Use the input-size attribute to change the input field size. Available sizes: xs, sm, md (default), lg, xl. Sizes are aligned with Pure Admin's .pa-input sizes.

Matches .pa-input--xs
Matches .pa-input--sm
Matches .pa-input
Matches .pa-input--lg
Matches .pa-input--xl

Basic Date Pickers

Pick one date
Pick start and end dates
Pick multiple dates/ranges

Date Format Options

Date Restrictions

Only dates in 2025 are selectable
Saturdays and Sundays disabled
Past dates disabled via JavaScript

Action Buttons

Quickly select today's date
Clear selection button
Today, Clear, and Apply buttons

Range Handling Modes (with Disabled Dates)

When selecting ranges that include disabled dates, different handling modes control the behavior:

Ranges can include disabled dates (weekends)
Range stops at disabled dates (weekends)

Inline Calendar (Always Visible)

Inline mode displays the calendar directly on the page instead of in a dropdown.

Use cases:

  • Dashboard date filters
  • Embedded booking calendars
  • Always-visible date selection
  • Large screen layouts

Keyboard Navigation

Keyboard Shortcuts:

  • โ†‘โ†“ - Navigate by day
  • โ†โ†’ - Navigate by week
  • Ctrl+โ†โ†’ - Previous/next month
  • PageUp/Down - Previous/next month
  • Home/End - First/last day of month
  • Ctrl+Home/End - First/last day of year
  • Enter - Select focused day
  • Esc - Close calendar
  • Tab - Switch month columns (multi-month)
  • T - Jump to today

Custom Rendering (Holidays & Events)

Dates with colored badges show holidays and events. Hover for details.

Programmatic Control

Events & Validation

Resources

  • npm Package: @keenmate/web-daterangepicker
  • Repository: github.com/keenmate/web-daterangepicker
  • Documentation: See package README and AI instructions in ../../web-daterangepicker/ai/
  • CSS Variables: 40+ customizable variables with --drp-* prefix
  • Theming: Pure Admin theme overrides in src/scss/core-components/_web-components-theme.scss
Type to search or use /p for products, /o for orders, /u for users, /i for invoices

Settings

๐Ÿ‘ค

John Doe

Administrator
  • ๐Ÿ“Š Dashboard
  • ๐Ÿ“ Forms
  • ๐Ÿ“‹ Tables
  • ๐Ÿ“Š Data Grid