ProductionApplies toLite and Pro
Migrating from Lite to Pro
In short
Install the Pro tarball as `super-scheduler`, change the imports and the stylesheet from `super-scheduler-lite` to `super-scheduler`, and write out Lite's defaults, because Pro's defaults differ (one day of hourly cells, editing and zoom gestures on, keyboard off). The component name, ISO date strings, resource and event fields, the basic options, the scales and the move, resize and selection callbacks carry over. Replace Lite's `onTimeRangeClick` with `onTimeRangeSelected`, persist changes from `onEventsChange`, then enable Pro features one at a time.
On this page
Lite and Pro share their component name, their civil date model and their basic data shapes, so a Lite view moves to Pro with a handful of edits. The differences that matter are the defaults, a few callbacks and the styling tokens. This guide converts a Lite view to an equivalent Pro view first, then adds Pro features one by one, so each step can be tested on its own.
A Pro subscription also covers commercial use of Lite by your developers, so you can move at your own pace: Lite in a commercial product needs Pro either way (see the license).
What stays the same
| Area | Shared by Lite and Pro |
|---|---|
| Component | SuperSchedulerComponent, with ref.current.control and controlRef |
| Dates | Civil ISO strings with seconds, half-open intervals, SuperScheduler.Date and SchedulerDate with the same methods |
| Resources | { id, name }, ids compared strictly (1 and '1' differ) |
| Events | id, resource, start, end, text, backColor, fontColor, cssClass, toolTip, tags |
| Options | startDate, days, scale ('Day', 'Hour', 'Minute', 'CellDuration'), cellDuration, cellWidth, height, rowHeaderWidth, rowMinHeight, eventHeight, locale, emptyState, eventMoveHandling, eventResizeHandling, timeRangeSelectedHandling |
| Control | update(), scrollTo(), scrollToResource(), visibleStart(), visibleEnd(), clearSelection(), dispose(), disposed() |
| Callbacks | onEventClick, onEventMove and onEventMoved, onEventResize and onEventResized, onTimeRangeSelect and onTimeRangeSelected: same names, same cancel rule (args.preventDefault()), and e.data, newStart, newEnd, newResource, what and origin mean the same |
Everything Lite accepts has a Pro counterpart except ariaLabel (see below). Pro options such as treeEnabled or zoomLevels, which Lite rejects with "unsupported option", work once you switch.
Switch the package
Pro is installed from a versioned HTTPS tarball under the package name super-scheduler. Remove Lite unless another part of your app still uses it:
npm uninstall super-scheduler-lite
npm install https://npm.superscheduler.org/pro/YOUR_DOWNLOAD_KEY/1.2.1.tgzpackage.json then lists the URL and your lockfile records its integrity. The key in that URL is a download secret: it appears in package.json and the lockfile, so treat both accordingly. Install SuperScheduler Pro covers keys, CI and upgrades. Pro lists React and React DOM (18.2 or later, or 19) as peer dependencies.
Update imports, styles and defaults
Here is a Lite view:
import { useCallback, useState } from 'react'
import { SuperSchedulerComponent } from 'super-scheduler-lite'
import type {
SchedulerEventMovedArgs,
SchedulerEventResizedArgs,
SuperScheduler,
} from 'super-scheduler-lite'
import 'super-scheduler-lite/styles.css'
const ROOMS: SuperScheduler.ResourceData[] = [
{ id: 'r101', name: 'Room 101' },
{ id: 'r102', name: 'Room 102' },
]
const EVENTS: SuperScheduler.EventData[] = [
{
id: 'b-1042',
resource: 'r101',
start: '2026-10-02T14:00:00',
end: '2026-10-05T11:00:00',
text: 'Ana Ruiz',
backColor: '#dbeafe',
},
{
id: 'b-1043',
resource: 'r102',
start: '2026-10-03T14:00:00',
end: '2026-10-08T11:00:00',
text: 'Tom Berg',
backColor: '#dcfce7',
},
]
/** Before: the Lite view. Bookings move and resize; a click on a free cell is reported. */
export function Availability() {
const [events, setEvents] = useState(EVENTS)
const [picked, setPicked] = useState('')
// Lite never modifies your objects: write each change back to your own state.
const onEventMoved = useCallback((args: SchedulerEventMovedArgs) => {
const { id } = args.e.data
setEvents((list) =>
list.map((item) =>
item.id === id
? {
...item,
start: args.newStart.value,
end: args.newEnd.value,
resource: args.newResource,
}
: item,
),
)
}, [])
const onEventResized = useCallback((args: SchedulerEventResizedArgs) => {
const { id } = args.e.data
setEvents((list) =>
list.map((item) =>
item.id === id ? { ...item, start: args.newStart.value, end: args.newEnd.value } : item,
),
)
}, [])
return (
<>
<p aria-live="polite">{picked}</p>
<SuperSchedulerComponent
startDate="2026-10-01"
resources={ROOMS}
events={events}
ariaLabel="Room availability"
// Lite's gestures are off by default: this view turns moving and resizing on.
eventMoveHandling="Update"
eventResizeHandling="Update"
onEventClick={({ e }) => setPicked(`Booking ${String(e.data.id)}`)}
onTimeRangeClick={({ start, resource }) =>
setPicked(`Free: ${String(resource)} on ${start.toString('d MMM')}`)
}
onEventMoved={onEventMoved}
onEventResized={onEventResized}
/>
</>
)
}And the same view on Pro:
import { useCallback, useMemo, useState } from 'react'
import { SuperSchedulerComponent } from 'super-scheduler'
import type {
SchedulerEventClickArgs,
SchedulerEventsChangeArgs,
SchedulerTimeRangeSelectedArgs,
SuperScheduler,
} from 'super-scheduler'
import 'super-scheduler/styles.css'
const ROOMS: SuperScheduler.ResourceData[] = [
{ id: 'r101', name: 'Room 101' },
{ id: 'r102', name: 'Room 102' },
]
const EVENTS: SuperScheduler.EventData[] = [
{
id: 'b-1042',
resource: 'r101',
start: '2026-10-02T14:00:00',
end: '2026-10-05T11:00:00',
text: 'Ana Ruiz',
backColor: '#dbeafe',
},
{
id: 'b-1043',
resource: 'r102',
start: '2026-10-03T14:00:00',
end: '2026-10-08T11:00:00',
text: 'Tom Berg',
backColor: '#dcfce7',
},
]
// Lite draws one header row with "d MMM" per day.
const TIME_HEADERS: SuperScheduler.TimeHeaderData[] = [{ groupBy: 'Day', format: 'd MMM' }]
/** After: the same view on Pro. Moves and resizes reach React state through onEventsChange. */
export function Availability() {
const [events, setEvents] = useState(EVENTS)
const [picked, setPicked] = useState('')
// Pro splices the events array it receives: give it its own copy.
const owned = useMemo(() => events.slice(), [events])
// One call per change (move, resize, API), with the control's complete list.
const onEventsChange = useCallback((args: SchedulerEventsChangeArgs) => {
setEvents([...args.events])
}, [])
const onEventClick = useCallback((args: SchedulerEventClickArgs) => {
setPicked(`Booking ${String(args.e.id())}`)
}, [])
// Lite's onTimeRangeClick fires for any empty cell. In Pro, clicking an empty cell selects it;
// Pro's own onTimeRangeClick fires only for a click on a range that is already selected.
const onTimeRangeSelected = useCallback((args: SchedulerTimeRangeSelectedArgs) => {
args.control.clearSelection()
if (args.origin !== 'click' && args.origin !== 'keyboard') return
setPicked(`Free: ${String(args.resource)} on ${args.start.toString('d MMM')}`)
}, [])
return (
// Pro has no ariaLabel option: name the region around it.
<section aria-label="Room availability">
<p aria-live="polite">{picked}</p>
<SuperSchedulerComponent
// Lite's defaults, written out: Pro's defaults differ.
startDate="2026-10-01"
days={31}
scale="Day"
cellWidth={64}
heightSpec="Fixed"
height={400}
rowHeaderWidth={160}
rowHeaderWidthAutoFit={false}
rowMinHeight={40}
eventHeight={26}
timeHeaders={TIME_HEADERS}
emptyState="No resources"
// Pro moves, resizes and selects by default, as the Lite view was set up to; zoom is Pro's own.
zoomGesture={false}
// Keyboard navigation is built into Lite and opt-in in Pro.
keyboardEnabled
keyboardTarget="component"
keyboardMode="Full"
resources={ROOMS}
events={owned}
onEventsChange={onEventsChange}
onEventClick={onEventClick}
onTimeRangeSelected={onTimeRangeSelected}
/>
</section>
)
}You should see the same rooms, bookings and colors, the same messages on click, and bookings that still move and resize. The grid uses your page's font instead of Lite's 13 px system font, and Pro's theme colors.
The edits, in order:
- Imports:
super-scheduler-litebecomessuper-scheduler, andsuper-scheduler-lite/styles.cssbecomessuper-scheduler/styles.css. - Defaults: write out every Lite default you relied on (table below).
- Behavior: decide on the editing gestures, which Pro turns on by default, disable zoom gestures and enable keyboard support.
- Callbacks: move cell clicks to
onTimeRangeSelected. - Data: give the control its own copy of the events array, because Pro splices the array it receives when events change, and write changes back from
onEventsChange. Lite never modifies your arrays.
| Option | Lite default | Pro default |
|---|---|---|
days | 31 | 1 |
scale | 'Day' | 'CellDuration' with cellDuration: 60, hourly cells |
cellWidth | 64 | 40 |
height | 400, fixed | 600, a maximum (heightSpec: 'Max'): the grid shrinks to its rows |
rowHeaderWidth | 160 | 80, and rowHeaderWidthAutoFit: true grows it to the names |
rowMinHeight | 40 | 0 |
eventHeight | 26 | 35 |
emptyState | 'No resources' | none |
eventMoveHandling, eventResizeHandling | 'Disabled' | 'Update' |
timeRangeSelectedHandling | 'Disabled' | 'Enabled' |
ariaLabel | 'Resource schedule' | not available |
| Time header | one row of d MMM labels; below a day, the day above the time of each cell | [{ groupBy: 'Default' }, { groupBy: 'Cell' }] |
Pro has no ariaLabel option: its grid has a built-in accessible name. Put the label on the region that contains it, as the example does with <section aria-label>.
Styles and selectors
Class names and tokens change prefix. Lite's root is .super-scheduler-lite with parts such as .super-scheduler-lite__event; Pro's root is .super-scheduler with .super-scheduler__event, plus [data-super-scheduler-part] markers. Map Lite's seven tokens as a starting point:
| Lite token | Pro token |
|---|---|
--super-scheduler-background | --super-scheduler-surface |
--super-scheduler-text | --super-scheduler-text |
--super-scheduler-border | --super-scheduler-border |
--super-scheduler-header | no single equivalent; style the timeHeader slot or .super-scheduler__header |
--super-scheduler-event | --super-scheduler-event-bg (or backColor per event) |
--super-scheduler-focus | --super-scheduler-focus-color and --super-scheduler-focus-ring |
--super-scheduler-selection | --super-scheduler-selection, with --super-scheduler-selection-border for its outline |
Pro has a richer token set, dark mode and density presets; see Theming.
Behavior that Pro turns on
Pro moves and resizes events by dragging and selects time ranges on click and drag out of the box: eventMoveHandling and eventResizeHandling default to 'Update', timeRangeSelectedHandling to 'Enabled'. Lite has the same gestures under the same options but leaves them 'Disabled' until you set them. The Lite view above turns moving and resizing on, so they carry over; if yours kept Lite's defaults, set those options to 'Disabled' in Pro to stay read-only. Out of the box, Pro also differs in three ways:
- it drags on touch screens (hold an event, then move it), where Lite only scrolls;
- it zooms with Ctrl or Cmd plus the wheel and with pinch gestures (
zoomGesture: true); - it leaves keyboard support off (
keyboardEnabled: false), while Lite always has arrow-key navigation. WithkeyboardEnabledPro listens on the whole document unlesskeyboardTargetis'component'.
The Pro example above pins these to Lite's behavior. Remove those lines one at a time as you adopt features. To keep a view read-only in either edition, set eventMoveHandling and eventResizeHandling to 'Disabled'.
Callbacks with richer arguments
| Lite | Pro |
|---|---|
onEventClick({ control, e: { data }, originalEvent }) | onEventClick({ e, div, control, originalEvent, ctrl, shift, meta, preventDefault }), where e is a SuperScheduler.Event with data, id(), start(), end(), text(), resource() and duration(); then onEventClicked |
onTimeRangeClick({ control, start, end, resource, originalEvent }) on any empty cell | onTimeRangeSelected({ start, end, resource, control, origin, multirange }), with origin 'click', 'drag', 'keyboard' or 'api' |
onEventMove, onEventMoved({ control, e: { data }, newStart, newEnd, newResource, ctrl, shift, meta }) | The same names and fields, plus multimove, external, async and loaded(); e is a SuperScheduler.Event whose data is your object |
onEventResize, onEventResized({ control, e: { data }, newStart, newEnd, what }) | The same names and fields, plus multiresize, async and loaded() |
onTimeRangeSelect, onTimeRangeSelected({ control, start, end, resource, origin }) | The same names, with multirange and two more origin values, 'keyboard' and 'api' |
Your state updated from onEventMoved and onEventResized | Works too, but onEventsChange reports every change of the store (moves, resizes, API calls, undo) once per task with the complete list; see Controlled state |
Other differences to check in your handlers:
- In Pro, handlers run with
thisset to the control, and most arguments includecontrol. - In Lite,
originalEventis aKeyboardEventwhen a cell or event is activated from the keyboard. In Pro, Enter on an event dispatches a click, soonEventClickalways receives aMouseEvent, and Enter on a cell is a selection withorigin: 'keyboard'. controlRefcallbacks are called withnullon unmount in Lite; Pro calls them only with the control and clears ref objects on unmount.scrollTo(date)takes optionalanimatedandpositionarguments in Pro.
When both packages are installed
Some products keep Lite on public pages and use Pro in the back office. That works, with two rules:
- Exchange ISO strings, not date objects. Each edition has its own date class, and Pro rejects a Lite date object.
- Keep their CSS apart. Each package has its own stylesheet. Some token names exist in both (
--super-scheduler-text,--super-scheduler-border,--super-scheduler-selection), so scope Lite overrides to.super-scheduler-liteinstead of:root.
import { type SuperScheduler as Lite } from 'super-scheduler-lite'
import { SuperScheduler as Pro } from 'super-scheduler'
// Each edition has its own date class. Passing a Lite date object to Pro throws
// ("expected a Date, a SchedulerDate, a number of ticks or an ISO 8601 string").
export function toProDate(date: Lite.Date): Pro.Date {
return new Pro.Date(date.value)
}
// Shared state, URLs and storage hold civil ISO strings, which both editions accept.
export const selectedDay: string = Pro.Date.today().valueImport the two components under different local names when one module needs both, for example import { SuperSchedulerComponent as LiteScheduler } from 'super-scheduler-lite'.
Adopt Pro features step by step
Once the Pro view matches the Lite one, add one capability at a time and test it:
- Keyboard and accessibility. Keep
keyboardEnabledandkeyboardMode="Full"; see Keyboard, accessibility and touch. - Rules while dragging. Move the checks you ran in
onEventMovetoonEventMovingandonEventResizing, so a refused slot says why before the drop, and addallowEventOverlap={false}for conflict feedback; see Drag and resize rules. - Creating bookings. Keep your
onTimeRangeSelectedhandler withorigin === 'drag'; Pro adds selection from the keyboard (origin: 'keyboard') and several ranges at once. - Zoom and longer scales. Add
zoomLevelswith week or month cells, removezoomGesture={false}; see Time scales and zoom. - Rows. Trees, frozen rows, split rows and row header columns; see Trees, columns and selection.
- Modules. Undo and redo, Minimap, Links, Panes and saved views and Range loading.
- React content. Switch the import to
super-scheduler/react-renderwhen you need React inside events or headers; see React render slots.
Hotel room planningA shower leaks in Room 104. Rehouse the next guest, block the room for the plumber and find the nights that are already full. For commercial questions about Pro, see the pricing page.