Skip to content
Vertical Jump Designs-uiFront-End Studio
Get Pro

v3.9 is out.

Pro (paid add-on)

Scheduler

Pro

Scheduler is an event calendar for team schedules: month, week, day and agenda views, repeating events, categories, and events you can move and resize with the mouse or the keyboard.

Part of Pro

This page documents part of @vjdesigns-pro/ui, the paid add-on package. Using it needs a Pro license and @vjdesigns/vjdesigns-ui 3.8.0 or later. Like the free package, it works in both modes, every brand, all 32 languages and right to left. Install it as described in Account forms.

Example

An event calendar for team schedules, with month, week, day and agenda views. Events are plain data: start is "YYYY-MM-DD" for an all-day event or "YYYY-MM-DDTHH:mm" for a timed one. There are no Date objects and no time zones: times are shown as given.

tsx
import { Scheduler, type SchedulerEvent } from "@vjdesigns-pro/ui";

const [events, setEvents] = useState<SchedulerEvent[]>([
  { id: "1", title: "vs Hawks", start: "2026-11-07T18:30", end: "2026-11-07T20:30", category: "game", location: "Home gym" },
  { id: "2", title: "Tournament trip", start: "2026-11-12", end: "2026-11-14", category: "travel" },
]);

<Scheduler
  aria-label="Team schedule"
  events={events}
  categories={[
    { id: "game", label: "Games" },
    { id: "travel", label: "Travel" },
  ]}
  onEventSelect={openEvent}
  onDateSelect={startNewEvent}
  onEventChange={(event, times) =>
    setEvents((list) => list.map((e) => (e.id === event.id ? { ...e, ...times } : e)))
  }
/>;

Events

  • Repeating events: add a repeat rule, such as { frequency: "weekly", weekdays: [1, 3], until: "2026-12-18" }, with an interval, an end and skipped dates. detachOccurrence changes one occurrence; shiftSeries moves them all.
  • Categories give events a color and a name in the legend. The color is only a marker beside the text, and the category is read out with each event.
  • Moving and resizing: with onEventChange, drag an event to another day or time, or drag its bottom edge to change its length. From the keyboard, Alt with the arrow keys moves a focused event, and Alt+Shift with Up or Down changes its length. Changes snap to snapMinutes (15) and are announced.
  • Picking times: onDateSelect gets a day; onSlotSelect gets a time range dragged out on the week or day grid.

Views

  • Month: multi-day events run as bars across the days, and busy days get "+N more".
  • Week and day: overlapping events sit side by side, all-day events run across the top, and a line marks the current time.
  • Agenda: a plain list. Choose the views offered with views, and control view and date if you need to.

Keyboard and languages

Each grid is one Tab stop. The arrow keys move between days, Page Up and Page Down change the period, Enter chooses a day, and F2 moves into its events (Tab cycles them, Escape goes back). Each day is read with its date and event count, and each event with its title, time, category and place. Dates, times and the first day of the week follow the LocaleProvider locale, and the layout mirrors in right-to-left languages.

Props

Scheduler

An event calendar with month, week, day, and agenda views, made for team and league schedules: games, practices, travel. Events can be selected, and with onEventChange moved and resized by dragging or from the keyboard. Week and day views lay overlapping events side by side and show the current time.

Accessibility: a labeled region. The month, week, and day grids are one Tab stop (role="grid"): arrow keys move between days, Page Up / Page Down change the period, Enter chooses the day, and F2 moves into its events (Tab cycles them, Escape goes back). Each day is read with its date and event count, and each event with its title, time, category, and place. Alt with the arrow keys moves a focused event and Alt+Shift with Up / Down changes its length; every change is announced. The agenda view is a plain list, the easiest to read with a screen reader.

tsx
<Scheduler
  aria-label="Team schedule"
  events={events}
  categories={[{ id: "game", label: "Games" }, { id: "practice", label: "Practices" }]}
  onEventSelect={openEvent}
  onEventChange={(event, times) => save({ ...event, ...times })}
/>
Scheduler props
PropTypeDefault
aria-labelRequired

Accessible name of the whole scheduler (e.g. "Team schedule").

string—
eventsRequired

The events. Update them in onEventChange to keep moves and resizes.

readonly SchedulerEvent[]—
categories

Groups with their own color (a team, games vs practices), in legend order. Up to 8.

readonly SchedulerCategory[]—
view

The layout (controlled).

"month""week""day""agenda"—
defaultView

Initial layout when uncontrolled.

"month""week""day""agenda""month"
onViewChange

Called when the user switches layouts.

(view: SchedulerView) => void—
views

Layouts offered in the switcher, in order.

readonly SchedulerView[]["month", "week", "day", "agenda"]
date

The date in view, "YYYY-MM-DD" (controlled).

ISODate—
defaultDate

Initial date when uncontrolled.

ISODatetoday
onDateChange

Called when the user moves to another period.

(date: ISODate) => void—
weekStartsOn

First day of the week, 0 (Sunday) to 6.

numberthe locale's
onEventSelect

Called when an event is clicked or activated with Enter. For a repeating event, event is the series and occurrence says which one.

(event: SchedulerEvent, occurrence?: SchedulerOccurrence) => void—
onDateSelect

Called when a day is chosen: a click on an empty part of a month day, or Enter on a focused day. Without it, a month day opens the day view.

(date: ISODate) => void—
onSlotSelect

Called when a time range is dragged out (or a slot clicked) on the week or day grid.

(slot: SchedulerSlot) => void—
onEventChange

Turns on moving and resizing: drag an event (or its bottom edge), or use Alt with the arrow keys. Called with the new times; update events. For a repeating event, event is the series and occurrence the one that moved: use detachOccurrence to change just that one, or shiftSeries to change them all.

(event: SchedulerEvent, times: SchedulerEventTimes, occurrence?: SchedulerOccurrence) => void—
maxEventsPerDay

Events shown per month day before "+N more".

number3
snapMinutes

Minutes that moves, resizes, and slot picks snap to.

number15
scrollToTime

Time the week and day grids scroll to first, "HH:mm".

string"08:00"
timeGridHeight

Height of the week and day grids' scrolling area (CSS length).

CSSProperties["maxHeight"]"36rem"
agendaDays

Days listed in the agenda view, from the date in view.

number14
renderEvent

Custom content inside each event (the title by default).

(event: SchedulerEvent) => ReactNode—
className

Class name for the root.

string—
style

Style for the root.

CSSProperties—

SchedulerCategory

A group of events with its own color (a team, a kind of event).

SchedulerCategory props
PropTypeDefault
idRequired

Matched by each event's category.

string—
labelRequired

Name shown in the legend and read with each event.

string—

SchedulerEvent

One event on the calendar.

SchedulerEvent props
PropTypeDefault
idRequired

Unique id.

string—
titleRequired

Short name shown on the calendar.

string—
startRequired

"YYYY-MM-DD" for an all-day event, or "YYYY-MM-DDTHH:mm" for a timed one.

string—
end

All-day: the last day, inclusive ("YYYY-MM-DD"; defaults to start). Timed: when it ends, exclusive ("YYYY-MM-DDTHH:mm"; defaults to one hour after start).

string—
category

The id of one of the scheduler's categories: sets its color and is read with it.

string—
location

Where it happens. Shown in the agenda and read with the event.

string—
editable

Allow moving and resizing this event (when the scheduler has onEventChange).

booleantrue
repeat

Makes the event repeat. Its start and end are the first occurrence.

SchedulerRepeat—

SchedulerEventTimes

New start and end for an event.

SchedulerEventTimes props
PropTypeDefault
startRequiredstring—
endRequiredstring—

SchedulerOccurrence

Which occurrence of a repeating event a callback is about.

SchedulerOccurrence props
PropTypeDefault
dateRequired

The occurrence's original date, "YYYY-MM-DD". Use it with detachOccurrence and exceptions.

ISODate—
startRequired

Its original start.

string—
endRequired

Its original end.

string—

SchedulerRepeat

A repeating event's rule.

SchedulerRepeat props
PropTypeDefault
frequencyRequired

Daily, weekly, monthly (same day of the month), or yearly (same date).

"daily""weekly""monthly""yearly"—
interval

Every how many days, weeks, months, or years.

number1
weekdays

Weekly only: the days it happens, 0 (Sunday) to 6.

readonly number[]the first occurrence's day
until

The last date it can happen, "YYYY-MM-DD" (inclusive).

ISODate—
count

How many times it happens in all (skipped dates still count).

number—
exceptions

Dates of occurrences to skip, "YYYY-MM-DD" (a cancelled practice, or one moved on its own).

readonly ISODate[]—

SchedulerSlot

A time range picked on the week or day grid.

SchedulerSlot props
PropTypeDefault
startRequired

"YYYY-MM-DDTHH:mm"

string—
endRequired

"YYYY-MM-DDTHH:mm" (exclusive)

string—