Components
Date Range Picker
A component that allows users to select a range of dates from a calendar.
Demo
Code
Select date
Installation
Usage
Basic Usage
With Min/Max Dates
Maximum Days
Limit the maximum number of days that can be selected:
Trigger Variants
Trigger Sizes
Custom Format
API Reference
DateRangePicker
Root component.
| Prop | Type | Default | Description |
|---|---|---|---|
startDate | Date | — | Range start date |
endDate | Date | — | Range end date |
onRangeChange | (start, end) => void | — | Callback when range changes |
minDate | Date | — | Minimum selectable date |
maxDate | Date | — | Maximum selectable date |
maxDays | number | — | Maximum days in range |
variant | 'default' | 'outline' | 'filled' | 'default' | Trigger variant |
size | 'sm' | 'md' | 'lg' | 'md' | Trigger size |
DateRangePickerTrigger
The button that opens the picker.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Trigger content |
className | string | — | Additional classes |
DateRangePickerContent
The calendar popup with action buttons.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Additional classes |
DateRangePickerValue
Display component for the selected range.
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | 'Select date range' | Placeholder text |
format | string | 'MMM DD, YYYY' | Date format |
showIcon | boolean | true | Show calendar icon |
className | string | — | Additional classes |