Event Calendar
A React week and day calendar scheduler with events placed by time, side by side overlap layout, an all-day row, a live time line and click or keyboard to create events.
src/registry/ui/event-calendar.tsx/r/event-calendar.json
Installation#
bash
npx shadcn@latest add https://ui.minidev.pro/r/event-calendar.json
Usage#
tsx
import { EventCalendar } from "@/components/ui/event-calendar"
export function Example() {
return <EventCalendar />
}
API reference#
| Prop | Type | Default |
|---|---|---|
events | CalendarEvent[] | - |
calendars | CalendarSource[] | CALENDARS |
view | CalendarView | - |
defaultView | CalendarView | "auto" | "auto" |
onViewChange | (view: CalendarView) => void | - |
defaultDate | Date | - |
onDateChange | (date: Date) => void | - |
weekStartsOn | 0 | 1 | 1 |
scrollToHour | number | 8 |
hourHeight | number | 48 |
height | number | 520 |
slotMinutes | number | 30 |
onCreate | (range: { start: Date; end: Date }) => void | - |
onEventClick | (event: CalendarEvent) => void | - |
locale | string | "en-US" |
className | string | - |
Dependencies#
npm
lucide-react
Built from
Related dashboard components#
Account Setup ProgressReact onboarding card that shows account setup as completed steps out of a total, with a labelled progress bar and a hint for the next step to finish.Activity FeedReact activity feed that lists who did what and when, with initials avatars, muted action text and tabular timestamps in a single bordered card.Admin Stat StripResponsive Tailwind row of admin KPI tiles, each with a label, a large tabular value and an optional up or down delta. Collapses from four columns to one.Calendar AgendaReact agenda list of the day's events with a fixed time column, title and optional meta line such as location or attendees, divided inside one card.Goal RingA circular progress ring that shows how far along a goal is, with the percentage in the middle and a caption below. Handy for fitness, sales or weekly targets.Impersonation BannerA top of page bar telling support staff which user account they are viewing as, with an Exit button to end the session. Common in admin and support tools.
All dashboard components