ProSchedulerSign in

Scheduler · Setting up

Mobile day view

A phone-sized layout: weekStrip puts a week of days above a single-day time grid. Picking a day shows it; each day shows how many events it holds.

Live demo

Tap another day in the strip · Page to next week with the header arrows

Fullscreen
import { ProScheduler } from "@andreisaac/pro-scheduler"
import { studioResources, studioSessions } from "./data/studio"
import { useEvents } from "./kit"

export function MobileDayViewDemo() {
  const { events, handlers } = useEvents(() => studioSessions())
  // A phone-sized frame: a week strip to pick the day, one day below it.
  return (
    <div style={{ maxWidth: 400, margin: "0 auto" }}>
      <ProScheduler
        data={events}
        resources={studioResources}
        view={{ scheduler: { type: "day", weekStrip: true, startTime: "08:00", endTime: "19:00" } }}
        height={640}
        {...handlers}
      />
    </div>
  )
}

About this demo

A phone-sized layout: weekStrip puts a week of days above a single-day time grid. Picking a day shows it; each day shows how many events it holds.

Things to try

  • Tap another day in the strip
  • Page to next week with the header arrows

The props behind it are explained in Scales, ranges and zoom.

Use ProScheduler in your project