# Advent Calendar Hero – Christmas Countdown Tree with Daily Gift Doors

> Advent Calendar Hero for React and Tailwind CSS (shadcn/ui): a Christmas countdown hero where 24 numbered gift boxes are laid out as a tree and one door unlocks each day. It gives a December campaign a daily reason to return. Past days sit open with their gift on show, today's lid is lifted with a warm glow, and future days stay closed: pressing a locked door makes it shake and says how many days are left. Opening a door lifts the box to the centre, swings the lid on its hinge in 3D to reveal the gift, and shows an offer card. Pass 24 items (door image, inside image, copy), set today as a number or a Date, and control the open door with openDay and onOpenChange or leave it uncontrolled. Day numbers are rendered in code, so they are always correct. Arrow-key navigation, Escape to close, reduced-motion support and a stacked phone layout are included. Use it for holiday promotions, daily deals and loyalty rewards. Requires React only, with no animation library.

- Author: [DHxWhy](https://21st.dev/@dhxwhy)
- License: mit
- Tags: Hero, Countdown, Ecommerce
- Live preview: https://21st.dev/@dhxwhy/components/advent-calendar-hero

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/dhxwhy/advent-calendar-hero?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/hero.md
