Skip to content
PixiKit

Calendar Book

A week calendar that plays on its own: an event is dragged out, clashes with another, and a time finder moves it to a free slot; the event can be dragged, resized and moved with the keyboard.

pixikit.com/docs/blocks/illustrations/calendar-book

Customize

First hour9h
Autoplay
Loop
Speed1.0x
Height380px
Width560px

Props

12
NameTypeDefaultDescription
eventsCalendarBookEvent[]DEFAULT_EVENTSThe events already in the week.
draftCalendarBookEventDEFAULT_DRAFTThe event that gets created, then moved to a free time.
daysstring[]DEFAULT_DAYSThe short day names above the columns.
firstHournumber9The hour the grid starts at, on a 24 hour clock.
findLabelstring"Find a time"The text on the chip that finds a time.
autoplaybooleantrueStarts when the scene scrolls into view; when off it waits for the replay button.
loopbooleantrueStarts over after the last step.
speednumber1A multiplier for the playing speed.
heightnumber360The height of the scene in px.
widthnumber560The widest the scene grows, in px. It shrinks to fit a narrower parent.
replayLabelstring"Replay"What screen readers call the replay button.
classNamestringNone

Related