Features
Scales, ranges and zoom
Choose the timeline's column unit apart from its span, hide the hours and days nobody works, show any custom window, number the weeks and let people zoom — without losing their place.
Span and column unit
A timeline’s type and size set how much time a page shows; resolutionHorizontal sets what one column is. Leave it out for the natural unit — hours for a day, months for a year, days otherwise. The header’s top tier groups the columns by the next unit up (days over hours, months over days and weeks, years over months, quarters and years).
<ProScheduler
view={{
timeline: {
type: "month", // the span: day, week, month, year or custom
size: 3, // three of them
resolutionHorizontal: "week", // the column: hour, day, week, month, quarter, year
unitWidthPx: 120, // column width for this view
weekNumbers: true, // a header tier of week numbers
},
}}
/>| resolutionHorizontal | Column | Header group |
|---|---|---|
| hour | timeCellStep minutes (default 60) | Day |
| day | A day | Month |
| week | A week, from the locale's first day | Month |
| month | A month | Year |
| quarter | Three months | Year |
| year | A year | Year |
Visible hours and days
startDay/endDay and startTime/endTime remove time from the axis rather than grey it out: hidden hours and days get no column. With day columns, each column covers just the visible hours, and events sit inside it in proportion. An event that runs through hidden time is drawn across the gap, and dragging across the gap skips it.
view={{
timeline: {
type: "week",
resolutionHorizontal: "hour",
timeCellStep: 30, // minutes per column
startDay: 1, // Monday…
endDay: 5, // …to Friday
startTime: "07:00", // each day from 07:00…
endTime: "19:00", // …to 19:00
},
}}Custom ranges
type: "custom" shows the window in range — a 36-hour shift view, ten days from today. The page is always as long as the range, shifted by whole lengths so it holds the current date, and the header arrows move one length at a time. The time grid takes custom ranges too, as whole days.
const range = { start: new Date(2026, 8, 14, 6), end: new Date(2026, 8, 15, 18) } // 36 hours
<ProScheduler view={{ timeline: { type: "custom", range } }} />
<ProScheduler view={{ scheduler: { type: "custom", range: { start: monday, end: thursday } } }} />Zoom
zoomLevels lists the steps from coarse to fine. Each sets the column unit, the minutes per column and the width; zoomLevel picks the first one. The default header shows a zoom control on the timeline, and the instance has zoomIn, zoomOut, setZoom and getZoom. Zooming keeps the date in the middle of the view in place.
const zoomLevels = [
{ label: "Weeks", resolutionHorizontal: "week", unitWidthPx: 160 },
{ label: "Days", resolutionHorizontal: "day", unitWidthPx: 64 },
{ label: "Hours", resolutionHorizontal: "hour", unitWidthPx: 36 },
{ label: "15 min", resolutionHorizontal: "hour", timeCellStep: 15, unitWidthPx: 36 },
]
const ref = useRef<ProSchedulerInstance>(null)
<ProScheduler ref={ref} view={{ timeline: { type: "month", zoomLevels, zoomLevel: 1 } }} />
ref.current?.zoomIn()
ref.current?.setZoom(0)
ref.current?.getZoom() // 0In a custom header, place the control yourself:
renderHeader={() => (
<>
<CalendarPrev /> <CalendarNext /> <CalendarNav />
<ZoomControl />
</>
)}Week numbers
weekNumbers is on the timeline (a header tier over day and hour columns), the time grid (the corner above the time gutter) and the calendar (a column before each week). Weeks follow ISO 8601 when the locale starts the week on Monday, and count from January 1st when it starts on Sunday. The label comes from the locale’s weekNumberText, e.g. “KW {week}” in German.
Mobile day view
weekStrip puts a week of days above the time grid; picking a day shows it. With type: "day" it makes a compact phone layout — see the mobile day view demo.
<ProScheduler view={{ scheduler: { type: "day", weekStrip: true } }} />Long axes
Timeline columns are virtualized like rows: the header, the grid lines, the events and renderCell are drawn only for the columns in view, so months of hour columns stay smooth. The red current-time line is on by default; turn it off with currentTimeIndicator: false.