ProSchedulerSign in

Features

Rules and backgrounds

Block times nothing may be scheduled into, shade the ones that matter, refuse double bookings, reserve buffers around events and lock events per field — each checked before your callbacks run.

Time ranges

invalid and colors take the same range shape. A range is either absolute — start and end, either of which may be left open — or recurring: a startTime–endTime window repeated daily or on weekDays (0 is Sunday), whole days when the times are omitted, and bounded by start/end when given. endTime may pass “24:00” for a window that runs overnight. resource scopes a range to one or more resources.

Where ranges show
ViewWhat draws
Time gridRanges that apply to every resource, inside each day's hours
TimelineEach row's ranges: unscoped ones and those for its resource
CalendarUnscoped ranges that cover a whole day

Blocked times

Nothing can be created, moved or resized into an invalid range — whatever the gesture and in the built-in editor alike. The check runs before your callbacks: a refused change fires onEventCreateFailed or onEventUpdateFailed with the event as it would have been and the range it touched, and the event snaps back. While dragging, the event and the drawn selection turn red before you let go. Blocked ranges draw hatched.

<ProScheduler
  invalid={[
    // every weekday, 12:00–13:00
    { recurring: { repeat: "weekly", weekDays: [1, 2, 3, 4, 5] }, startTime: "12:00", endTime: "13:00", title: "Lunch" },
    // whole days, every weekend
    { recurring: { repeat: "weekly", weekDays: [0, 6] }, title: "Weekend" },
    // a one-off day, for one resource
    { start: new Date(2026, 9, 12), allDay: true, resource: "farah", title: "Holiday" },
    // open-ended: everything before now
    { end: new Date(), title: "Past" },
  ]}
  onEventCreateFailed={({ reason, invalid }) => toast(`Unavailable: ${invalid?.title}`)}
  onEventUpdateFailed={({ event }) => toast(`${event.title} can't go there`)}
  …
/>

Backgrounds

colors only draws: office hours, sprints, a resource working remotely. Style a range with background (any CSS background), cssClass (your classes, dark variants included) and textColor for its title.

<ProScheduler
  colors={[
    {
      recurring: { repeat: "weekly", weekDays: [1, 2, 3, 4, 5] },
      startTime: "09:00",
      endTime: "17:00",
      background: "color-mix(in oklab, #10b981 10%, transparent)",
    },
    { start: sprintStart, end: sprintEnd, title: "Sprint 12", cssClass: "bg-indigo-500/10" },
    { recurring: { repeat: "weekly", weekDays: [1] }, resource: "hana", title: "Remote" },
  ]}
  …
/>

Double booking and buffers

eventOverlap={false} refuses any change that would overlap another event of the same resource; events without a resource are compared with each other. A single event’s overlap: false makes it exclusive even where overlaps are allowed. bufferBefore and bufferAfter (minutes) reserve time around an event: they draw hatched, keep neighbours in separate lanes and count as busy.

<ProScheduler
  eventOverlap={false} // per resource: nobody is double-booked
  data={[
    // 45 minutes of travel either side count as busy
    { id: 1, title: "Site visit", start, end, resource: "ada", bufferBefore: 45, bufferAfter: 45 },
    // exclusive even where overlaps are allowed
    { id: 2, title: "Board meeting", start, end, overlap: false },
  ]}
  …
/>

Per-event restrictions

const event = {
  id: 7,
  title: "Delivery",
  start, end, resource: "van-2",
  editable: false,          // locked: renders, never moves or resizes
  resize: false,            // moves, keeps its length
  dragInTime: false,        // keeps its time; can only change resource (timeline)
  resourceEditable: false,  // keeps its resource; can only change time
}

Restrictions shape the drag itself: a dragInTime: false bar only moves between rows, a resourceEditable: false bar only sideways. For rules that depend on who’s looking, derive these fields from your user’s role before passing data — see the role-based access demo.

Tooltips, cells and hover

<ProScheduler
  renderEventTooltip={({ original, start, end }) => <BookingCard booking={original} />}
  showEventTooltip        // default true; false turns every tooltip off
  renderCell={({ date, resource }) => <Price at={date} room={resource} />}
  onCellHoverIn={({ date, resource }) => setHovered(date)}
  onCellHoverOut={() => setHovered(null)}
  …
/>

renderCell draws once per empty cell under the events — a time-grid slot of timeCellStep minutes, or a timeline column — so keep it light. onCellHoverIn and onCellHoverOut fire once per cell, not on every pointer move.