Pro (paid add-on)
Scheduler
ProScheduler 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.
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
repeatrule, such as{ frequency: "weekly", weekdays: [1, 3], until: "2026-12-18" }, with aninterval, an end and skipped dates.detachOccurrencechanges one occurrence;shiftSeriesmoves 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 tosnapMinutes(15) and are announced. - Picking times:
onDateSelectgets a day;onSlotSelectgets 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 controlviewanddateif 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.
<Scheduler
aria-label="Team schedule"
events={events}
categories={[{ id: "game", label: "Games" }, { id: "practice", label: "Practices" }]}
onEventSelect={openEvent}
onEventChange={(event, times) => save({ ...event, ...times })}
/>
| Prop | Type | Default |
|---|---|---|
aria-labelRequiredAccessible name of the whole scheduler (e.g. "Team schedule"). | string | — |
eventsRequiredThe events. Update them in | readonly SchedulerEvent[] | — |
categoriesGroups with their own color (a team, games vs practices), in legend order. Up to 8. | readonly SchedulerCategory[] | — |
viewThe layout (controlled). | "month""week""day""agenda" | — |
defaultViewInitial layout when uncontrolled. | "month""week""day""agenda" | "month" |
onViewChangeCalled when the user switches layouts. | (view: SchedulerView) => void | — |
viewsLayouts offered in the switcher, in order. | readonly SchedulerView[] | ["month", "week", "day", "agenda"] |
dateThe date in view, "YYYY-MM-DD" (controlled). | ISODate | — |
defaultDateInitial date when uncontrolled. | ISODate | today |
onDateChangeCalled when the user moves to another period. | (date: ISODate) => void | — |
weekStartsOnFirst day of the week, 0 (Sunday) to 6. | number | the locale's |
onEventSelectCalled when an event is clicked or activated with Enter. For a repeating event, | (event: SchedulerEvent, occurrence?: SchedulerOccurrence) => void | — |
onDateSelectCalled 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 | — |
onSlotSelectCalled when a time range is dragged out (or a slot clicked) on the week or day grid. | (slot: SchedulerSlot) => void | — |
onEventChangeTurns on moving and resizing: drag an event (or its bottom edge), or use Alt with the arrow keys. Called with the new times; update | (event: SchedulerEvent, times: SchedulerEventTimes, occurrence?: SchedulerOccurrence) => void | — |
maxEventsPerDayEvents shown per month day before "+N more". | number | 3 |
snapMinutesMinutes that moves, resizes, and slot picks snap to. | number | 15 |
scrollToTimeTime the week and day grids scroll to first, "HH:mm". | string | "08:00" |
timeGridHeightHeight of the week and day grids' scrolling area (CSS length). | CSSProperties["maxHeight"] | "36rem" |
agendaDaysDays listed in the agenda view, from the date in view. | number | 14 |
renderEventCustom content inside each event (the title by default). | (event: SchedulerEvent) => ReactNode | — |
classNameClass name for the root. | string | — |
styleStyle for the root. | CSSProperties | — |
SchedulerCategory
A group of events with its own color (a team, a kind of event).
| Prop | Type | Default |
|---|---|---|
idRequiredMatched by each event's | string | — |
labelRequiredName shown in the legend and read with each event. | string | — |
SchedulerEvent
One event on the calendar.
| Prop | Type | Default |
|---|---|---|
idRequiredUnique id. | string | — |
titleRequiredShort 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 | — |
endAll-day: the last day, inclusive ("YYYY-MM-DD"; defaults to | string | — |
categoryThe | string | — |
locationWhere it happens. Shown in the agenda and read with the event. | string | — |
editableAllow moving and resizing this event (when the scheduler has | boolean | true |
repeatMakes the event repeat. Its | SchedulerRepeat | — |
SchedulerEventTimes
New start and end for an event.
| Prop | Type | Default |
|---|---|---|
startRequired | string | — |
endRequired | string | — |
SchedulerOccurrence
Which occurrence of a repeating event a callback is about.
| Prop | Type | Default |
|---|---|---|
dateRequiredThe occurrence's original date, "YYYY-MM-DD". Use it with | ISODate | — |
startRequiredIts original start. | string | — |
endRequiredIts original end. | string | — |
SchedulerRepeat
A repeating event's rule.
| Prop | Type | Default |
|---|---|---|
frequencyRequiredDaily, weekly, monthly (same day of the month), or yearly (same date). | "daily""weekly""monthly""yearly" | — |
intervalEvery how many days, weeks, months, or years. | number | 1 |
weekdaysWeekly only: the days it happens, 0 (Sunday) to 6. | readonly number[] | the first occurrence's day |
untilThe last date it can happen, "YYYY-MM-DD" (inclusive). | ISODate | — |
countHow many times it happens in all (skipped dates still count). | number | — |
exceptionsDates 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.
| Prop | Type | Default |
|---|---|---|
startRequired"YYYY-MM-DDTHH:mm" | string | — |
endRequired"YYYY-MM-DDTHH:mm" (exclusive) | string | — |