Calendar
Month Calendar
A single-month date picker whose months slide sideways and whose selection pill springs from day to day.
npx motionsnack add month-calendarCustomize
<MonthCalendar />Props
23 properties
| Property | Type | Default | Description |
|---|---|---|---|
| value | string | - | Selected day as 'YYYY-MM-DD'. With a value the component is controlled. |
| onChange | (value: string) => void | - | Called with the picked day as 'YYYY-MM-DD'. |
| defaultMonth | string | '' | Month shown at the start when month is empty, as 'YYYY-MM'. |
| onMonthChange | (month: string) => void | - | Called with the shown month after the user moves to another month. |
| isDateDisabled | (date: string) => boolean | - | Blocks single days. |
| labels | { previousMonth?: string; nextMonth?: string } | English | Accessible names of the month buttons. |
| frame | boolean | true | Deprecated: false drops the card around the calendar. |
| accent | string | - | Deprecated, ignored: the today mark is monochrome. |
| selectedColor | string | - | Deprecated, ignored: the selected day is the on fill. |
| selectedTextColor | string | - | Deprecated, ignored. |
| cellSize | number | - | Deprecated, ignored: day cells are 40. |
| radius | number | - | Deprecated, ignored: day cells are radius 8. |
| slide | number | - | Deprecated, ignored: the month cross-fades. |
| duration | number | - | Deprecated, ignored. |
| bounce | number | - | Deprecated, ignored. |
| className | string | '' | Extra classes on the calendar. |
| month | string | '' | Month shown first, as 'YYYY-MM'. Empty: the month of the selected day, else the current month. |
| defaultValue | string | 'today' | Day selected at the start: 'YYYY-MM-DD', 'today', or empty for none. |
| weekStartsOn | '' | 'monday' | 'sunday' | '' | First column of the week. Left out, it comes from the locale. |
| locale | string | 'en-US' | Locale of the month and weekday names and of the first day of the week (BCP 47). |
| showOutsideDays | boolean | true | Show the days of the neighbouring months. A click on one moves to its month. |
| min | string | '' | Earliest day that can be picked, 'YYYY-MM-DD'. Empty: no limit. |
| max | string | '' | Latest day that can be picked, 'YYYY-MM-DD'. Empty: no limit. |
About Month Calendar
A compact single-month date picker that works controlled or uncontrolled and reports the picked day as an ISO date. Changing the month slides the grid left or right while the title rolls in the matching direction, and the grid always holds six weeks so the card never changes height. The selected day carries a filled pill that travels to the next pick with a spring, and today is marked with a small accent dot. Arrow keys move focus day by day and week by week, Home and End jump within the week, Page Up and Page Down change the month. The week can start on Monday or Sunday, month and weekday names follow the locale prop, and days outside an optional min and max range are disabled.
What's included
- Month slide with direction-aware title
- Selection pill that moves with a spring
- Today marker in the accent colour
- Full keyboard navigation with a roving tab stop
- Week starts on Monday or Sunday, localised names
- Controlled or uncontrolled, optional min and max days
- Light and dark, reduced motion respected
- Type
- Animated React calendar component
- Library
- Components · Calendar
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20