Skip to content
PixiKit

Span Calendar

A scheduling calendar with month, week and day views, events that share the width when they overlap, a live current-time line, and drag to move, resize or draw events.

pixikit.com/docs/app-ui/data/span-calendar

Customize

Default view
Day start7
Day end20
Step15min
Week start1
Hour12
Height560px

Props

18
NameTypeDefaultDescription
viewSpanViewNoneThe view when controlled.
defaultViewSpanView"week"The view at first.
onViewChange(view: SpanView) => voidNoneCalled with the view the user switched to.
dateDateNoneThe focused day when controlled.
defaultDateDateNoneThe focused day at first. Default: today.
onDateChange(date: Date) => voidNoneCalled with the day that came into focus.
eventsSpanEvent[][]The events to show.
onEventChange(id: string, range: SpanRange) => voidNoneCalled with the new times when an event is dragged or resized. Turns dragging on.
onEventCreate(range: SpanRange) => voidNoneCalled with the times of a new event drawn on empty time, or from a double-click on a month day. Turns drawing on.
onEventSelect(id: string) => voidNoneCalled with the id of an event that was clicked or opened with Enter.
dayStartnumber7The first hour of the week and day views, 0 to 23.
dayEndnumber20The hour the week and day views end at, 1 to 24.
stepnumber15Minutes events snap to when dragged or resized.
weekStartnumberNoneThe first day of the week, 0 for Sunday to 6. Default: from the locale, else Monday.
localestring"en-US"The language of the names and times, as for `Intl`.
hour12booleanNoneForces a 12 or 24 hour clock. Default: from the locale.
heightnumber560The height of the calendar in px.
classNamestringNone

Related