Date Range Picker
Date Range Pickers are crucial for conveying date-based info effectively, improving user interaction with accurate date selections.
Basic
A range calendar displays one or more date grids and allows users to select a range of dates in a single interaction.
Preview
Code
Event date
mm
dd
yyyy
mm
dd
yyyy
Installation
CLI
Manual
npx hq-kit add date-range-picker
Preview
Code
Custom Validation
Use the validate
function to implement custom validation rules. It evaluates the current date range and returns error messages if the value doesn't meet your criteria.
Preview
Code
Controlled
Take control of your date range picker by passing a value
prop to manage the selected date range.
Preview
Code
Friday, November 22, 2024 to Wednesday, December 4, 2024
2024-11-22 to 2024-12-04
Event date
11
22
2024
12
4
2024
Disabled
When the date range picker is disabled, it becomes non-interactive and is visually represented in a disabled state.
Preview
Code
Event date
mm
dd
yyyy
mm
dd
yyyy