Planningstable
Calendar
Month, week and day calendar
A composable calendar: month grid, week and day time grids with overlap layout, an all-day row and a now line.
Mar 9 – 15, 2026
All day
- Offsite
- Offsite
Project kickoff9:00 AM–10:30 AM
Deep work1:00 PM–3:00 PM
Design review10:00 AM–11:30 AM
Team sync11:00 AM–11:45 AM
Lunch with Ana12:30 PM–1:30 PM
Workshop9:00 AM–12:00 PM
Standup9:00 AM–9:15 AM
Client call10:00 AM–11:00 AM
Gym6:00 PM–7:00 PM
Retro3:00 PM–4:00 PM
Dinner7:00 PM–9:00 PM
Customize
Lookstyle and first view
variantdefaultView1
weekStartsOnGridhow much each view shows
3
maxEventsPerDay48 px
hourHeight0
startHour24
endHourUsage
import { Calendar } from "zerogravity/calendar"
<Calendar
events={events}
/>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
variant | "pixel" | "classic" | "minimal" | "glass" | "pixel" | Style. |
defaultView | "month" | "week" | "day" | "week" | First view. |
weekStartsOn | number | 1 | Week starts on (0 = Sunday). Range 0 to 6. |
maxEventsPerDay | number | 3 | Events per month day. Range 1 to 6. |
hourHeight | number | 48 | Hour height. Range 24 to 96 px. |
startHour | number | 0 | First hour. Range 0 to 12. |
endHour | number | 24 | Last hour. Range 13 to 24. |
events | { id, title, start: Date, end: Date, allDay?, accent? }[] | [] | Items to show. End is exclusive; your own fields reach renderEvent. |
view / date / selectedDate | controlled props with defaultX and onXChange | uncontrolled | Each can be controlled or left to the calendar. |
renderEvent | (event, info) => ReactNode | CalendarEvent | Replaces every event chip: menus, popovers and status badges go here. |
renderDay | (info) => ReactNode | — | Extra content inside each month cell. |
onEventClick / onMoreClick | (event) => void / (date) => void | — / open the day | Event activation, and the +N more control. |
locale / timeZone / now | string / string / Date | device | Formatting, the wall clock events are placed on, and a fixed now. |
children | Calendar.Header, Calendar.View, Calendar.Month, Calendar.Week, Calendar.Day | Header + View | Compose your own layout; useCalendar() drives custom headers. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.