ProSchedulerSign in

Scheduler · Look & feel

Right-to-left

dir="rtl" mirrors the scheduler: days run right to left, the hours sit on the right, and dragging follows the pointer. Dates are formatted in Arabic by Intl.

Live demo

Drag a session to the next day — to its left · Draw a new booking

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

/** English strings with Arabic labels; dates come from Intl in Arabic. */
const localeAr: SchedulerLocale = {
  ...localeEn,
  code: "ar",
  firstDay: 6,
  todayText: "اليوم",
  resourcesText: "الموارد",
  newEventText: "حدث جديد",
  editEventText: "تعديل الحدث",
  titleText: "العنوان",
  resourceText: "المورد",
  startText: "البداية",
  endText: "النهاية",
  cancelText: "إلغاء",
  saveText: "حفظ",
  createText: "إنشاء",
  deleteText: "حذف",
  dayText: "يوم",
  weekText: "أسبوع",
  monthText: "شهر",
  yearText: "سنة",
}

export function SchedulerRtlDemo() {
  const { events, handlers } = useEvents(() => studioSessions())
  return (
    <ProScheduler
      dir="rtl"
      locale={localeAr}
      data={events}
      resources={studioResources}
      view={{ scheduler: { type: "week", startTime: "08:00", endTime: "19:00" } }}
      height={580}
      {...handlers}
    />
  )
}

About this demo

dir="rtl" mirrors the scheduler: days run right to left, the hours sit on the right, and dragging follows the pointer. Dates are formatted in Arabic by Intl.

Things to try

  • Drag a session to the next day — to its left
  • Draw a new booking

The props behind it are explained in Output and scale.

Use ProScheduler in your project