A month calendar for picking a date. The chosen day slides between tiles. Keyboard navigation by day, week and month, plus 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 | Date | null | Selected date. Set it to control the component. | |
| defaultValue | Date | null | null | Starting date when uncontrolled. |
| onValueChange | (date: Date) => void | Called with the chosen date. | |
| 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. |