Day view
One day as a vertical time grid, 07:00 to 20:00 in half-hour cells. Overlapping bookings sit side by side, and the header pages a day at a time.
Open demoDemos
Day, week and month time grids. Every demo below is the real component, with its code and data beside it.
One day as a vertical time grid, 07:00 to 20:00 in half-hour cells. Overlapping bookings sit side by side, and the header pages a day at a time.
Open demoThe classic calendar week: seven day columns, a current-time line, and moves and resizes that snap to 15 minutes.
Open demoMonday to Friday, 08:00 to 18:00, fitted to the available height so the whole working day shows without scrolling.
Open demosize multiplies a view's span: type: "day", size: 3 shows three days, and the header's arrows step three days at a time.
The host measures its container and passes a day view when it is narrow, the whole week when there is room. The scheduler itself needs no special mode.
Open demoA phone-sized layout: weekStrip puts a week of days above a single-day time grid. Picking a day shows it; each day shows how many events it holds.
print() on the instance prints the scheduler alone — the rest of the page is left out, and every hour of the grid is included, not just what's scrolled into view.
A warehouse crew on rotating morning, evening and night shifts. The grid runs from 06:00 to 06:00 the next morning (endTime: "30:00"), so a night shift draws in one piece instead of being cut at midnight.
A GP's week: office hours shaded green with colors; lunch, evenings, weekends and the past blocked with invalid; one patient at a time with eventOverlap={false} — each appointment's five-minute turnaround (bufferAfter) included.
A clinic's day with a column per doctor (resources: true). Lunch is blocked for everyone and Dr. Weber's afternoon for her alone; with overlaps off, a doctor sees one patient at a time.
Drag a person onto a meeting to add them. onExternalDropOnEvent fires when something dragged in lands on an event rather than an empty slot; the event it would join is outlined while you hover.
Change the first and last hour, and hide or show weekends. Everything else about the scheduler stays as it was.
Open demoEvents marked allDay, or lasting a day or more, go to the strip under the day headers. allDay: false on the view hides the strip for grids that only deal in hours.
Toggle which grid lines draw, the cell size, a time readout that follows the pointer, and fitting the day to the height.
Open demoSeveral keys in view give the header a switcher. The calendar carries the agenda below it; defaultView picks the week grid to open on.
Drive the visible date from your own controls through the selectedDate prop, and hear about the scheduler's own navigation through onSelectedDateChange.
Search filters what the grid shows; clicking a result navigates to it through the ref handle.
Open democolors shades recurring windows — focus time every weekday morning, a meeting-free Friday afternoon, evenings — without restricting anything.
bufferBefore and bufferAfter reserve travel or set-up time around an event. They draw hatched and, with overlaps off, count as busy.
maxEventStack caps how many overlapping events sit side by side; the rest go behind a "+N more" chip that lists them.
labels: 3 shows events as bars across the days they cover, up to three per day, with "+N more" for the rest.
type: "custom" with a range shows exactly those days — here starting today. The header arrows page by the range's own length.
weekNumbers shows the week in the corner above the time gutter: ISO weeks when the locale starts on Monday, weeks counted from January 1st when it starts on Sunday.
eventOrder decides which of overlapping events sits further left — here the escalation first, whatever time it starts.
Meetings are stored as New York wall-clock strings (dataTimezone) and shown in the zone picked with displayTimezone — today, the current-time line and every drag follow it.
timezones adds a time column per zone beside the gutter, so the same row reads in San Francisco, New York, Tokyo and Lisbon.
min and max keep the scheduler to this month and next: the arrows stop at the edges, and the time outside is hatched and can't be booked.
renderEventContent fills each block with your markup — client, times and person here — while colour, dragging and resizing keep working.
renderDay replaces each column heading. This one adds the hours booked that day, in red past twelve.
renderHeader rebuilds the toolbar from the same building blocks the default uses, plus anything of your own.
renderEventTooltip replaces the hover card — here with the kind, client and the person's role. Return null for no tooltip on an event.
renderCell draws inside every empty cell under the events: a studio's hourly rate, dearer in the evening and at weekends.
With resource columns, renderResource fills each column heading: an avatar, the name and the role.
Every gesture, with the snap step and each one switchable. The log shows what the after-callbacks received.
Open demoClient reviews are editable: false. The before-callbacks refuse weekends, times outside 08:00–18:00 and new bookings in the past — refused changes snap back.
Per-event rules: resize: false keeps the duration, dragInTime: false fixes the time, editable: false locks the event entirely.
invalid blocks lunch every day, weekends and a one-off holiday. A move into one snaps back and onEventUpdateFailed says why; the drag turns red before you let go.
With eventOverlap={false} a person can't have two sessions at once; other people's sessions don't count.
Select backlog tasks or scheduled events and drag them together. Groups pack back-to-back, with one validated transaction per scheduler; a conflicting drop leaves every event in place.
Open demoA backlog of unscheduled tasks. Wrap each in ExternalDraggable with the event it becomes (duration in minutes); externalDrop lets the scheduler take it, with a preview of where it lands.
Reusable templates: each drop makes a new event, and the preset stays in the list.
Open demoTwo schedulers, both with externalDrag and externalDrop. A session dragged out of one follows the pointer and lands in the other; the source removes it once the target accepts.
resources: true splits the day into a column per resource; each column shows only that resource's events, and dragging across columns reassigns them.
Three days, three people: groupBy: "date" puts the people under each day, "resource" puts the days under each person.
An event with resource: ["ada", "ben", "chloe"] belongs to all three and shows in each column. Dragging one copy to another person swaps just that person.
Checkboxes in a custom header choose which people get a column.
Open demoOnly the people with something booked on the visible day get a column; page to another day and the columns follow.
Open demoA resource is an id, a name and a colour, plus optional background, cssClass, eventCreation, children and any fields of your own.
Per-column background, plus resource-scoped colour ranges for each person's hours.
One event of each kind: timed, all-day, multi-day, point-in-time, locked, coloured, and one carrying custom fields. Click any to see its object.
Open demostart and end accept Date objects, ISO strings with or without an offset, and epoch milliseconds — whatever your API returns.
recurring repeats an event, as an object ({ repeat: "weekly", weekDays: "TU,TH" }) or an RRULE string. recurringException leaves days out — no standup on the offsite day.
parseIcs turns an iCalendar file — an export from Google Calendar, Outlook or Apple Calendar — into events: all-day and timed, time zones, recurring rules and their exceptions.
onPageChange reports the visible range on mount and on every page change; load just that range into data.
The same pattern against a real route: each page fetches its range, and a newer page aborts the request it replaces.
Open demoThe built-in dialog handles create, edit and delete. clickToCreate drafts a one-hour event on a single click; extendDefaultEvent adds defaults.
With showDefaultEditor={false}, clicks and drafts come to you. Returning false from onEventCreate cancels the automatic create so your form decides.
An open-ended range, { end: now }, blocks everything before now: nothing can be created or moved into the past.
Change one occurrence and the scheduler asks: this event, this and the following, or all. Your handlers receive plain changes — the series updated, an exception added, a single event created — with info saying where they came from.
selectMultipleEvents: clicks select, Delete removes the selection (onEventsDelete, then onEventDeleted for each), Escape clears it and a double click opens the editor. Controlled here with selectedEvents so the toolbar can act on it.
Design tokens are CSS variables: override --primary or --radius on any ancestor. themeVariant="dark" forces dark tokens on one scheduler.
A colour range's cssClass takes any classes — Tailwind utilities with dark-mode variants here — for the parts of the day you want marked.
onCellHoverIn and onCellHoverOut report the half-hour under the pointer; the line above shows who's busy and how many are free.
Four presets — slate, rose, emerald and amber — each a class that overrides the shadcn/ui tokens, light and dark. Import @andreisaac/pro-scheduler/themes/rose.css and add psch-theme-rose.
dir="rtl" mirrors the scheduler: days run right to left, the hours sit on the right, and dragging follows the pointer. Dates are formatted in Arabic by Intl.
Every callback, logged as it fires, in order.
Open demoSix built-in locales: dates format through Intl, and the first day of the week and every label follow the locale.
Open demo