The RangeCalendar functionality is built into the Calendar component. Use the
range prop to enable range selection.See Also
Calendar
Use the Calendar component with the
range prop to select date ranges.Quick Example
Features
When using the Calendar component withrange prop:
- Start and end dates: Users can select a range by clicking two dates
- Visual feedback: The range between selected dates is highlighted
- Keyboard navigation: Navigate through dates using arrow keys
- Customizable: Control appearance with colors, sizes, and variants
- Month/year navigation: Built-in controls for browsing dates
Common Use Cases
- Booking systems: Select check-in and check-out dates
- Date filters: Filter data by a date range
- Event planning: Choose event start and end dates
- Report generation: Select date ranges for reports
- Availability selection: Mark available date ranges
Working with Date Ranges
The Calendar component with range mode returns aDateRange object: