A month grid for one day, several days or a range; 36 px days with a mouse, 44 px on touch.
Calendar single
Install
npx shadcn add @syncrobotic/calendar Also installs: react-day-picker@^10, lucide-react, @syncrobotic/cn
Overview
A month view to pick dates (react-day-picker): single, multiple or a range, one month or several.
When to use
- Inline on a scheduling page.
- Inside a popover: use Date selector, which wraps it.
- Showing which days have events.
Use something else
- A date field in a form: Date selector.
- A time of day: Time picker.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Calendar range
Calendar disabled days
Calendar multiple
Calendar week numbers
Calendar month year dropdowns
Calendar two months
Calendar with events
Calendar future only
Calendar sunday first
Calendar range max week
Usage rules
- The picked day is inverted; today is bold with a ring.
- Weeks start on Monday by default.
- Disabled days stay visible and struck through.
Changelog
- 0.25.02026-11-21Runs on react-day-picker 10: run npm i react-day-picker@^10 with the update; it looks and behaves the same. Props removed in v10 no longer type-check: fromMonth/fromYear and toMonth/toYear become startMonth and endMonth, fromDate/toDate become startMonth/endMonth plus hidden={{ before }} / {{ after }}, initialFocus becomes autoFocus, onDayKeyUp/onDayPointer*/onDayTouch* are gone, and old classNames keys (day_selected, caption, head_cell…) take their v9 names (selected, month_caption, weekday…). Persian, Hijri and other non-Gregorian calendars moved to @daypicker/* packages.
- 0.23.02026-11-20With a react-day-picker
localethat names its days (zhTWfrom react-day-picker/locale), the day buttons use that locale's words instead of the kit's English ones. - 0.17.32026-11-19With two or more months, days of neighbouring months are hidden (an end day showed twice) and months wrap when narrow.