vmnog/calendarcn
vmnog/calendarcn has 157 GitHub stars and 11 forks. GitHot measured +5 stars in 24 hours. Last checked 2026-11-18 21:12 UTC. Last push 2026-11-11.
What you can do
- Views: day, week, any number of days from 2 to 9, and month.
- Direct manipulation: drag events to move them, drag their edges to resize, click an empty slot to create one. Works with touch too.
- Real calendar data: overlapping events side by side, all-day and multi-day events, a current-time indicator.
- Event details: a side panel or popover that matches Notion Calendar's details panel, with inline editing for the time and date, time zone, repeat, participants and rooms, conferencing, location, links and attachments, description, calendar, availability and reminders. Plus a right-click menu.
Measured star growth
- in 24h
- +5
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
A calendar for React inspired by Notion Calendar, built on shadcn/ui. Day, week and month views with drag, resize, touch and keyboard support.
Web & AppsREADME.md
OriginalCalendarCN
A calendar for React inspired by Notion Calendar. Built on shadcn/ui, installed with the shadcn CLI, and yours to edit.
Features
- Views: day, week, any number of days from 2 to 9, and month.
- Direct manipulation: drag events to move them, drag their edges to resize, click an empty slot to create one. Works with touch too.
- Real calendar data: overlapping events side by side, all-day and multi-day events, a current-time indicator.
- Event details: a side panel or popover that matches Notion Calendar's details panel, with inline editing for the time and date, time zone, repeat, participants and rooms, conferencing, location, links and attachments, description, calendar, availability and reminders. Plus a right-click menu.
- Keyboard first: shortcuts for every view, a command menu, and keyboard move and resize for focused events.
- Accessible: labeled events, focus rings, and screen reader announcements when an event moves.
- Configurable: date-fns locale, 12 or 24 hour clock, week start, snap interval and visible hours.
- Your data, your markup: typed with your own event type, with render slots for event content and details.
- Theming: light and dark mode with the shadcn/ui CSS variables.
Installation
Like shadcn/ui, CalendarCN isn't an npm package: the shadcn CLI copies the source into your project. Add the registry to your components.json:
{
"registries": {
"@calendarcn": "https://calendarcn.xyz/r/{name}.json"
}
}
Then add the full calendar, or only the pieces you need (week-view, month-view, calendar-core and more):
npx shadcn add @calendarcn/calendar
Or the whole live demo, sidebars and command menu included, as one block (Calendar App):
npx shadcn add @calendarcn/calendar-app
CalendarCN works with the Radix and the Base UI versions of the shadcn/ui components. The installation guide covers setup and every item.
Usage
import { Calendar } from "@/components/calendar";
import type { CalendarEvent } from "@/components/calendar-types";
export function MyCalendar({ events }: { events: CalendarEvent[] }) {
return (
<div className="h-[600px]">
<Calendar defaultEvents={events} />
</div>
);
}
Or compose your own: wrap DayView, WeekView, MonthView or TimeGrid in CalendarProvider. The docs have a live example and the API reference for each component.
Development
You'll need Node.js 22+ and pnpm 10+.
git clone https://github.com/vmnog/calendarcn.git
cd calendarcn
pnpm install
pnpm dev
Open localhost:3000 for the demo and localhost:3000/docs for the docs.
Contributing
Contributions are welcome, from typo fixes in the docs to new views. Read the contributing guide to get set up, then look at issues labeled good first issue or open a new one.
Built with
Next.js, React, Tailwind CSS, shadcn/ui, date-fns and Lucide. The docs run on Fumadocs.
License
MIT. Created by Victor Nogueira (@mevmnog).
