# AnimateSparkle Toggle with Magical Effects

> A stunning animated toggle switch featuring a star icon surrounded by dynamic sparkle particles. When toggled, the switch rotates with a smooth animation while sparkles flow outward, creating a magical effect. The component transforms from a dark theme to a bright blue gradient with enhanced sparkle animations, perfect for premium interfaces, dark mode toggles, or any application requiring an enchanting user interaction.

- Author: [M.bin Salman](https://21st.dev/@muhammad-binsalman)
- License: unknown
- Live preview: https://21st.dev/@muhammad-binsalman/components/animate-sparkle-toggle-with-magical-effects

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/muhammad-binsalman/animate-sparkle-toggle-with-magical-effects?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
