# Migrating from Lite to Pro

> Move an integration from super-scheduler-lite to super-scheduler: what stays the same, which defaults and callbacks change, and how to adopt Pro features step by step.

Source: https://superscheduler.org/en/docs/migrate-lite-to-pro/
Reviewed: 2026-10-11

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.

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](https://superscheduler.org/en/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:

```sh
npm uninstall super-scheduler-lite
npm install https://npm.superscheduler.org/pro/YOUR_DOWNLOAD_KEY/1.2.1.tgz
```

`package.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](https://superscheduler.org/en/docs/install-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:

```tsx
// src/Availability.tsx (Lite)
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:

```tsx
// src/Availability.tsx (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:

1. Imports: `super-scheduler-lite` becomes `super-scheduler`, and `super-scheduler-lite/styles.css` becomes `super-scheduler/styles.css`.
2. Defaults: write out every Lite default you relied on (table below).
3. Behavior: decide on the editing gestures, which Pro turns on by default, disable zoom gestures and enable keyboard support.
4. Callbacks: move cell clicks to `onTimeRangeSelected`.
5. 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](https://superscheduler.org/en/docs/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. With `keyboardEnabled` Pro listens on the whole document unless `keyboardTarget` is `'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](https://superscheduler.org/en/docs/controlled-state/) |

> **Behavior:**
> Pro also has an `onTimeRangeClick`, but it means something else: it fires when the user clicks a time range that is already selected. A click on an empty cell in Pro is a one-cell selection reported by `onTimeRangeSelect` (before, cancelable) and `onTimeRangeSelected` (after). Filter on `args.origin === 'click'` if drags must not count.

Other differences to check in your handlers:

- In Pro, handlers run with `this` set to the control, and most arguments include `control`.
- In Lite, `originalEvent` is a `KeyboardEvent` when a cell or event is activated from the keyboard. In Pro, Enter on an event dispatches a click, so `onEventClick` always receives a `MouseEvent`, and Enter on a cell is a selection with `origin: 'keyboard'`.
- `controlRef` callbacks are called with `null` on unmount in Lite; Pro calls them only with the control and clears ref objects on unmount.
- `scrollTo(date)` takes optional `animated` and `position` arguments 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-lite` instead of `:root`.

```ts
// src/dates.ts
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().value
```
Import 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:

1. **Keyboard and accessibility.** Keep `keyboardEnabled` and `keyboardMode="Full"`; see [Keyboard, accessibility and touch](https://superscheduler.org/en/docs/keyboard-accessibility-touch/).
2. **Rules while dragging.** Move the checks you ran in `onEventMove` to `onEventMoving` and `onEventResizing`, so a refused slot says why before the drop, and add `allowEventOverlap={false}` for conflict feedback; see [Drag and resize rules](https://superscheduler.org/en/docs/drag-resize-rules/).
3. **Creating bookings.** Keep your `onTimeRangeSelected` handler with `origin === 'drag'`; Pro adds selection from the keyboard (`origin: 'keyboard'`) and several ranges at once.
4. **Zoom and longer scales.** Add `zoomLevels` with week or month cells, remove `zoomGesture={false}`; see [Time scales and zoom](https://superscheduler.org/en/docs/time-scales-zoom/).
5. **Rows.** Trees, frozen rows, split rows and row header columns; see [Trees, columns and selection](https://superscheduler.org/en/docs/trees-columns-selection/).
6. **Modules.** [Undo and redo](https://superscheduler.org/en/docs/undo-redo/), [Minimap](https://superscheduler.org/en/docs/minimap-metrics/), [Links](https://superscheduler.org/en/docs/links-dependencies/), [Panes and saved views](https://superscheduler.org/en/docs/panes-saved-views/) and [Range loading](https://superscheduler.org/en/docs/range-loading/).
7. **React content.** Switch the import to `super-scheduler/react-render` when you need React inside events or headers; see [React render slots](https://superscheduler.org/en/docs/react-render-slots/).

→ https://superscheduler.org/en/examples/hotel-rooms/
For commercial questions about Pro, see the [pricing page](https://superscheduler.org/en/pricing/).
