# Christmas Cursor – Sparkle Trail Mouse Cursor with Snow on Click

> Christmas Cursor for React and Tailwind CSS (shadcn/ui): a custom mouse cursor that turns the pointer into a tiny Christmas tree, leaves a trail of sparkles as it moves and shakes out a burst of snow on every click. It is built to add a festive touch to a hero section or a whole page in one wrapper. The cursor itself is a real OS cursor (32px with a 2x image), so the hotspot stays exact and there is no lag, while sparkles and snowflakes are drawn on a single canvas that only animates while particles are alive. Links and buttons get a Santa-mitten pointer and text fields a candy-cane I-beam. Hold the button to keep it snowing. Pass your own cursor images with hotspots, set the scope to an area or the whole page, switch the trail or snow off, tune density and colours, or drive it from code through apiRef. Touch input and reduced motion are respected. Use it for holiday landing pages, seasonal campaigns, online stores and festive portfolio sites. Requires React only, with no animation library.

- Author: [DHxWhy](https://21st.dev/@dhxwhy)
- License: mit
- Tags: Cursor, Mouse Trail
- Live preview: https://21st.dev/@dhxwhy/components/christmas-tree-cursor

## Install

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