Pick a start and an end date on one calendar. Days between are tinted and previewed as you move. Full keyboard support, min and max dates and locales.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | DateRange | Selected range. Set it to control the component. | |
| defaultValue | DateRange | EMPTY | Starting range when uncontrolled. |
| onValueChange | (range: DateRange) => void | Called whenever the range changes. | |
| min | Date | Earliest date that can be chosen. | |
| max | Date | Latest date that can be chosen. | |
| weekStartsOn | 0 | 1 | 0 | Day the week starts on: 0 is Sunday, 1 is Monday. |
| locale | string | "en-US" | Locale for month and weekday names, such as "en-US" or "hi-IN". |
| className | string | Extra classes added to the outer element. |