ProSchedulerSign in

Demos

Scheduler

Day, week and month time grids. Every demo below is the real component, with its code and data beside it.

Setting up

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 demo

Week view

The classic calendar week: seven day columns, a current-time line, and moves and resizes that snap to 15 minutes.

Open demo

Work week

Monday to Friday, 08:00 to 18:00, fitted to the available height so the whole working day shows without scrolling.

Open demo

Custom day range

size multiplies a view's span: type: "day", size: 3 shows three days, and the header's arrows step three days at a time.

Open demo

Responsive day and week

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 demo

Mobile day view

A 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.

Open demo

Print

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.

Open demo

Use cases

24-hour crew rota

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.

Open demo

Doctor's availability

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.

Open demo

Appointment booking

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.

Open demo

Drop attendees on meetings

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.

Open demo

Configuring the view

Visible hours and days

Change the first and last hour, and hide or show weekends. Everything else about the scheduler stays as it was.

Open demo

All-day events

Events 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.

Open demo

External date navigation

Drive the visible date from your own controls through the selectedDate prop, and hear about the scheduler's own navigation through onSelectedDateChange.

Open demo

Event search sidebar

Search filters what the grid shows; clicking a result navigates to it through the ref handle.

Open demo

Color-coded time blocks

colors shades recurring windows — focus time every weekday morning, a meeting-free Friday afternoon, evenings — without restricting anything.

Open demo

Event buffer

bufferBefore and bufferAfter reserve travel or set-up time around an event. They draw hatched and, with overlaps off, count as busy.

Open demo

Limit overlapping events

maxEventStack caps how many overlapping events sit side by side; the rest go behind a "+N more" chip that lists them.

Open demo

Custom range

type: "custom" with a range shows exactly those days — here starting today. The header arrows page by the range's own length.

Open demo

Week numbers

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.

Open demo

Custom event order

eventOrder decides which of overlapping events sits further left — here the escalation first, whatever time it starts.

Open demo

Time zone

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.

Open demo

Multiple time zones

timezones adds a time column per zone beside the gutter, so the same row reads in San Francisco, New York, Tokyo and Lisbon.

Open demo

Date limits

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.

Open demo

Templating

Custom event rendering

renderEventContent fills each block with your markup — client, times and person here — while colour, dragging and resizing keep working.

Open demo

Custom date header

renderDay replaces each column heading. This one adds the hours booked that day, in red past twelve.

Open demo

Custom header

renderHeader rebuilds the toolbar from the same building blocks the default uses, plus anything of your own.

Open demo

Custom event tooltip

renderEventTooltip replaces the hover card — here with the kind, client and the person's role. Return null for no tooltip on an event.

Open demo

Cell content

renderCell draws inside every empty cell under the events: a studio's hourly rate, dearer in the evening and at weekends.

Open demo

Custom resource headers

With resource columns, renderResource fills each column heading: an avatar, the name and the role.

Open demo

Drag & drop

Drag, resize and create

Every gesture, with the snap step and each one switchable. The log shows what the after-callbacks received.

Open demo

Validation and locked events

Client 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.

Open demo

Drag, resize and move restrictions

Per-event rules: resize: false keeps the duration, dragInTime: false fixes the time, editable: false locks the event entirely.

Open demo

Blocked time ranges

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.

Open demo

Prevent double booking

With eventOverlap={false} a person can't have two sessions at once; other people's sessions don't count.

Open demo

Bulk event placement

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 demo

External drag and drop

A 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.

Open demo

External presets

Reusable templates: each drop makes a new event, and the preset stays in the list.

Open demo

Move between schedulers

Two 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.

Open demo

Resources

Multi-resource view

resources: true splits the day into a column per resource; each column shows only that resource's events, and dragging across columns reassigns them.

Open demo

Group by resource or date

Three days, three people: groupBy: "date" puts the people under each day, "resource" puts the days under each person.

Open demo

Shared events across resources

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.

Open demo

Hide resources without events

Only the people with something booked on the visible day get a column; page to another day and the columns follow.

Open demo

Resource data structure

A resource is an id, a name and a colour, plus optional background, cssClass, eventCreation, children and any fields of your own.

Open demo

Data

Event data structure

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 demo

Date formats

start and end accept Date objects, ISO strings with or without an offset, and epoch milliseconds — whatever your API returns.

Open demo

Recurring events

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.

Open demo

Import an .ics calendar

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.

Open demo

Loading events

Load events on demand

onPageChange reports the visible range on mount and on every page change; load just that range into data.

Open demo

Load events from a remote API

The same pattern against a real route: each page fetches its range, and a newer page aborts the request it replaces.

Open demo

CRUD

Add, edit and delete

The built-in dialog handles create, edit and delete. clickToCreate drafts a one-hour event on a single click; extendDefaultEvent adds defaults.

Open demo

Custom editor

With showDefaultEditor={false}, clicks and drafts come to you. Returning false from onEventCreate cancels the automatic create so your form decides.

Open demo

Prevent past event creation

An open-ended range, { end: now }, blocks everything before now: nothing can be created or moved into the past.

Open demo

Recurring add and edit

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.

Open demo

Bulk actions

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.

Open demo

Look & feel

Theming and dark mode

Design tokens are CSS variables: override --primary or --radius on any ancestor. themeVariant="dark" forces dark tokens on one scheduler.

Open demo

CSS classes for cells

A colour range's cssClass takes any classes — Tailwind utilities with dark-mode variants here — for the parts of the day you want marked.

Open demo

Cell hover summary

onCellHoverIn and onCellHoverOut report the half-hour under the pointer; the line above shows who's busy and how many are free.

Open demo

Theme presets

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.

Open demo

Right-to-left

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.

Open demo

Localization & lifecycle

Event hooks

Every callback, logged as it fires, in order.

Open demo

Localization

Six built-in locales: dates format through Intl, and the first day of the week and every label follow the locale.

Open demo