ProSchedulerSign in

Scheduler · Configuring the view

Month calendar with event labels

labels: 3 shows events as bars across the days they cover, up to three per day, with "+N more" for the rest.

Live demo

Find a multi-day bar · Open a +N chip · Click a label to edit it

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

export function MonthLabelsDemo() {
  const { events, handlers } = useEvents(studioEvents)

  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      // Events as bars across their days; more than three go behind "+N more".
      view={{ calendar: { type: "month", labels: 3 } }}
      height={720}
      {...handlers}
    />
  )
}

About this demo

labels: 3 shows events as bars across the days they cover, up to three per day, with "+N more" for the rest.

Things to try

  • Find a multi-day bar
  • Open a +N chip
  • Click a label to edit it

The props behind it are explained in Views.

Use ProScheduler in your project