# Christmas Toggle Tree – Holiday Theme Switch Hero with Ornament Toggles

> Christmas Toggle Tree for React and Tailwind CSS (shadcn/ui): a holiday theme switch where rows of toggle switches stack into a Christmas tree and every knob is a photoreal glass ornament. Flip the master switch at the foot of the tree and the rows switch on from the trunk to the star: ornaments slide along their tracks with a small swing, string-light bulbs glow, the star lights up, the backdrop cross-fades to warm fairy lights and light snow starts to fall. Switching it off dims the tree from the top down. Every small switch is a real role="switch" button with roving focus and arrow keys. Control the master with checked, defaultChecked and onCheckedChange, and pass your own ornaments, star, bulbs, backdrops, row count and labels. It scales from a full hero to a small settings card and respects reduced motion. Use it for holiday landing pages, festive theme toggles and settings screens. Requires React only, with no animation library.

- Author: [DHxWhy](https://21st.dev/@dhxwhy)
- License: mit
- Tags: Switch, Toggle, Hero
- Live preview: https://21st.dev/@dhxwhy/components/christmas-toggle-tree

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/dhxwhy/christmas-toggle-tree?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/switch.md
