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| Name | Type | Default | Description |
|---|---|---|---|
events | CalendarBookEvent[] | DEFAULT_EVENTS | The events already in the week. |
draft | CalendarBookEvent | DEFAULT_DRAFT | The event that gets created, then moved to a free time. |
days | string[] | DEFAULT_DAYS | The short day names above the columns. |
firstHour | number | 9 | The hour the grid starts at, on a 24 hour clock. |
findLabel | string | "Find a time" | The text on the chip that finds a time. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for the replay button. |
loop | boolean | true | Starts over after the last step. |
speed | number | 1 | A multiplier for the playing speed. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |