- 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
Examples
One component, many products — each example a live calendar with its source beside it, grounded in the real API.
Every example on these pages is the real <Kloq> running in the page with an
ephemeral store, and the code shown is the code that renders it — copy it out
and it works. They are grouped by what you are building: a product screen, a
data pipeline, a visual customisation, or an interaction.
01products
Products
Whole screens you would ship — a calendar dressed as a booking page, a roster, a public agenda.
- book a callA Cal.com-style availability picker: busy time hatched and refused by constraints, click a free slot to book.constraintsisSlotDisabledslotAllowedonSlotClick
- Two accounts, five calendars, colour inherited from the calendar — with a calendar list that toggles each one.registerCalendarAccountCalendarListcalendarIdresolveEventColor
- Four meeting rooms as timeline lanes — drag to book, drag across rooms to reassign, drag an edge to resize.viewlaneslaneAdapterbyResourceId
- Five people, one week, as timeline lanes — drag to schedule, drag across rows to reassign a shift to someone else.viewlaneslaneAdaptertimelineWindow
- KinetiConfWednesday09:0009:3010:3012:0013:00A public, read-only programme in 24-hour time with tracks as locations and a details sheet on click.readOnlyhour12localecomponents
02data & sync
Data & sync
Where the events come from and where they go: servers, ranges, URLs, storage, files.
- syncing 1…#2 update rejected → reverted#1 update okEvery change is committed to a fake server with latency and a reject switch; a rejection springs the block home.onCommitKloqChangedefaultEvents
- 96 of 300 events loaded · 3 requests#3 … #2 61 events #1 54 eventsA controlled calendar that only holds what onRangeChange has fetched, merged page by page.onRangeChangerangePaddingeventsonEventsChange
- ?view=week&date=2026-10-12Controlled view and date mirrored into the query string, so a link opens the same week and back/forward work.viewdateonViewChangeonDateChange
- kloq-example:acme:eventsUncontrolled events saved through your own adapter — here sessionStorage with a versioned payload and a per-tenant namespace.persistencestoragePersistenceAdapterreadPayload
03customization
Customization
Swap the visual pieces, run several calendars, change the clock the grid is drawn in.
- The calendar as one route of a product: sidebar nav, header, and a container that gives it a real height.childrenuseKloqKloq.Toolbarfits
- A deploy pipeline drawn with its own EventBlock — status stripe, progress, and the engine contract honoured so drags still work.componentsEventBlockPropsregisterNodeuseKloqSettings
- 3 AM4 PM8 AM4 AM5 PM9 AM5 AM6 PM10 AM6 AM7 PM11 AMDraw the grid in any zone, add London / New York / Tokyo gutter columns, and keep each event's authored zone.displayTimeZonetimeZonestimeZoneonTimeZonesClick
- A month overview beside a day view, both controlled by the same date — click a day on the left, it opens on the right.dateonDateChangeeventsonEventsChange
04interaction
Interaction
Recurrence, commands, keys and natural language — the parts that make it feel like a product.
- feed.ics✓ 5 added · 3 skipped · 1 warningDrop a .ics feed onto the calendar, then export what is on screen back out as a file.parseICSeventsToICSrangeOfViewdownloadICS
- FREQ=WEEKLY;INTERVAL=2Weekday standups, a fortnightly review and a monthly payday — as RRULE strings, expanded live, edited this / following / all.rruledescribeRRulenextOccurrenceRRuleBuilder
- focus⌘KBook a focus blockJump to the next standupDomain commands in the palette, Vim-style h / l / g on the keymap, and a row that lists the effective bindings.registerCommandskeymaponCustomizeKeybindsglobalShortcuts
- Lunch with Sam friday1pmat DishoomType "lunch with Sam tomorrow 1pm" into a box above the grid; the parser underlines what it understood and the event lands.parseQuickAddhighlightSegmentsQUICK_ADD_KINDSquickAddPreview
Last updated