Getting started
Examples
- Examples
- Booking calendar
- Team calendar
- Room booking
- Shift scheduler
- Conference agenda
- Calendar in an app layout
- Optimistic server sync
- Lazy-load by date range
- View and date in the URL
- Custom persistence adapter
- ICS import and export
- Custom event rendering
- Multiple time zones
- Linked month and day views
- Recurring events (RRULE)
- Custom ⌘K commands
- Natural-language event entry
Registry
Core concepts
Customization
Playground
Every prop on knobs: a live calendar and a snippet that rewrites itself as you flip them.
The props that change how the calendar draws, each on a knob. The snippet under the calendar rewrites itself as you flip them — copy it out when it looks right.
live·playground·nothing is saved
flip a knob, copy the snippet
props
defaultView
Uncontrolled starting view. Ignored when view is set.density
Hour height, event type size and padding together.zoom4
ZOOM_STEPS (0–10; 4 = 100%).dayStartHour0
dayEndHour this clips the day.dayEndHour24
snapMinutes
Drag and keyboard snap grid.weekStartsOn
0 = Sunday … 6 = Saturday.workingHours
Working-hours tint boundaries; false disables the tint.locale
BCP 47 tag for every date and time label.hour12
Force a 12- or 24-hour clock; omit and the locale decides.timeZones
Extra gutter zone columns, in order.navigationKeys
What ←/→ move by. PageUp / PageDown always step the range.<Kloq>
<Kloq.Toolbar />
</Kloq>Every knob here is a plain prop on <Kloq>; the deeper surfaces — controlled
state, slots, themes, the command registry — get their own pages, several
with smaller playgrounds of their own.
Last updated