Event Calendar

Event Calendar: Full-featured interactive scheduling calendar with month/week views, animated day cells, event pills, and popover creation. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Event Calendar

npx motion-ui-skill add event-calendar

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Source files

Event Calendar

Headless-first animated event calendar with monthly grid views, event pills, day-switching transitions, and modal detail inspection. Inspired by KeenThemes ReUI.

Install

npx motion-ui-skill add event-calendar

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { EventCalendar, type CalendarEvent } from "@/components/motion/event-calendar";

const EVENTS: CalendarEvent[] = [
  {
    id: "e1",
    title: "Quarterly Roadmap Review",
    date: "2026-09-12",
    time: "10:00",
    color: "blue",
  },
  {
    id: "e2",
    title: "Model Release Deploy",
    date: "2026-09-15",
    time: "14:30",
    color: "emerald",
  },
  {
    id: "e3",
    title: "Security Penetration Audit",
    date: "2026-09-22",
    color: "rose",
  },
];

export function EventCalendarExample() {
  return (
    <div className="max-w-3xl p-6">
      <EventCalendar
        events={EVENTS}
        onEventClick={(ev) => console.log("Event clicked:", ev.title)}
      />
    </div>
  );
}

Props

Prop Type Default Description
events CalendarEvent[] required Array of scheduled events with id, title, ISO date string, time, and color tag.
initialDate Date new Date() Initial month/year viewing anchor.
onEventClick (event: CalendarEvent) => void undefined Callback emitted when an event pill is selected.
onDateClick (date: Date) => void undefined Callback emitted when a day cell is clicked.
className string undefined Custom styling overrides merged via cn().

Browse this category