Advent Calendar
A bento grid of doors that unlock one per day, with a live countdown to the next. Each door opens to a reward: a title, an icon and a code that copies on click. For seasonal campaigns, launch weeks and daily drops.
pixikit.com/docs/components/advent-calendar
Customize
Days24
Accent color
Open animation
Settings
Props
17| Name | Type | Default | Description |
|---|---|---|---|
title | string | None | The heading of the calendar. |
description | string | None | A line under the heading. |
startDate | Date | string | Required | The day of the first door, as an ISO date or a Date. Doors unlock at midnight in the visitor's time zone. |
days | number | 24 | How many doors there are. The last one is the large feature tile. |
doors | AdventDoor[] | None | What each day holds, by day number. Days without an entry stay plain. |
now | Date | None | Pretends it is this moment, for demos and tests; the clock still ticks from there. |
accentColor | string | "#a855f7" | The accent for the date line, today's door and the codes; any CSS colour. |
finalLabel | string | None | The label on the final tile, such as the event's name. |
storageKey | string | None | Remembers opened doors in localStorage under this key. Without it, earlier days show their reward and only today is opened by hand. |
onOpenDoor | (day: number, door: AdventDoor | undefined) => void | None | Called when a visitor opens a door. |
actions | ReactNode | None | Buttons or links on the right of the header. |
timerAside | ReactNode | None | Shown on the right of the countdown tile, such as a small picture. |
openAnimation | boolean | true | A door opens with a swing and a burst of sparkles. |
settings | boolean | false | Adds a settings button whose menu lets the visitor turn the opening animation off. |
shareUrl | string | None | Adds a Share button that copies this link. |
onClose | () => void | None | Adds a close button and is called when it is pressed. |
className | string | None |