Skip to content
PixiKit

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
NameTypeDefaultDescription
titlestringNoneThe heading of the calendar.
descriptionstringNoneA line under the heading.
startDateDate | stringRequiredThe day of the first door, as an ISO date or a Date. Doors unlock at midnight in the visitor's time zone.
daysnumber24How many doors there are. The last one is the large feature tile.
doorsAdventDoor[]NoneWhat each day holds, by day number. Days without an entry stay plain.
nowDateNonePretends it is this moment, for demos and tests; the clock still ticks from there.
accentColorstring"#a855f7"The accent for the date line, today's door and the codes; any CSS colour.
finalLabelstringNoneThe label on the final tile, such as the event's name.
storageKeystringNoneRemembers 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) => voidNoneCalled when a visitor opens a door.
actionsReactNodeNoneButtons or links on the right of the header.
timerAsideReactNodeNoneShown on the right of the countdown tile, such as a small picture.
openAnimationbooleantrueA door opens with a swing and a burst of sparkles.
settingsbooleanfalseAdds a settings button whose menu lets the visitor turn the opening animation off.
shareUrlstringNoneAdds a Share button that copies this link.
onClose() => voidNoneAdds a close button and is called when it is pressed.
classNamestringNone

Related