ProSchedulerSign in

Features

Output and scale

Right-to-left layouts, printing, loading rows and events as they scroll into view, theme presets, date limits and iCalendar import.

Right-to-left

dir="rtl" mirrors every view: time runs right to left in the timeline, days right to left in the time grid, the resource column and time gutter move to the right, and dragging, resizing and drawing follow the pointer. The default, "auto", follows the page’s own dir. Pair it with a locale for the language — dates are formatted by Intl in any language.

<ProScheduler dir="rtl" locale={localeAr} … />   // or dir="auto" (default): follow the page

Printing

print() on the instance prints the scheduler alone: the rest of the page is left out, the header’s buttons are hidden, and every row and column is rendered — not just what was scrolled into view — at full height.

const scheduler = useRef<ProSchedulerInstance>(null)

<button onClick={() => scheduler.current?.print()}>Print</button>
<ProScheduler ref={scheduler} … />

Loading as you scroll

The timeline renders only the rows and columns in view (plus a margin). onVirtualLoading reports that window — the rows’ indexes and resources, and the first and last date — whenever it changes, so you can fetch just those events, or append more resources as the end comes into view. See virtual loading and resources on scroll.

<ProScheduler
  resources={crews}            // thousands of rows are fine: they're virtualized
  data={events}
  onVirtualLoading={({ resources, firstDay, lastDay, endIndex }) => {
    loadEvents(resources, firstDay, lastDay)            // only what's rendered
    if (endIndex > crews.length - 10) loadMoreCrews()   // resources on scroll
  }}
/>

Theme presets

Four presets ship with the package — slate, rose, emerald and amber. Each is a class that overrides the shadcn/ui tokens (colours and corner radius), in light and dark. Put it on a wrapper — or on <html> — rather than the scheduler itself, so the editor and popovers, which render in a portal, match.

import "@andreisaac/pro-scheduler/styles.css"
import "@andreisaac/pro-scheduler/themes/rose.css" // slate, rose, emerald or amber

<div className="psch-theme-rose">
  <ProScheduler … />
</div>

Date limits

min and max bound what can be shown and edited. Navigation stops at them — the header’s arrows turn off — and the time outside is blocked like an invalid range: hatched, and refused for creating, moving and resizing.

<ProScheduler
  min={new Date(2026, 9, 1)}
  max={new Date(2026, 11, 31)} // inclusive: a date at midnight means the whole day
/>

Importing iCalendar

parseIcs reads an .ics file — an export from Google Calendar, Outlook or Apple Calendar — into events. All-day dates, UTC and TZID times, DURATION, recurring rules (RRULE, kept as a string the scheduler expands) and EXDATE exceptions are supported; alarms are ignored, and edited single occurrences (RECURRENCE-ID) are skipped. Floating times stay as strings — read in your dataTimezone.

import { parseIcs } from "@andreisaac/pro-scheduler" // or "/server"

const response = await fetch("/calendar.ics")
const events = parseIcs(await response.text())
// [{ id: "uid", title: "Standup", start, end, recurring: "FREQ=WEEKLY;…", recurringException: […] }, …]