# sun moon theme toggle, 21st-dhxwhy component by dhxwhy

Animated dark mode toggle for React and Tailwind CSS (shadcn/ui): a sun and moon swap inside a tiny sky. It is built to turn a utility switch into a small mom

> Pagina: https://ui.eneawork.it/comp/21st-dhxwhy/sun-moon-theme-toggle
> Markdown: https://ui.eneawork.it/comp/21st-dhxwhy/sun-moon-theme-toggle.md

- Libreria: [21st-dhxwhy](/components/lib/21st-dhxwhy)
- Pagina HTML: https://ui.eneawork.it/comp/21st-dhxwhy/sun-moon-theme-toggle

## Install

```bash
npx shadcn@latest add "https://ui.eneawork.it/api/registry/21st-dhxwhy/sun-moon-theme-toggle.json?token=YOUR_TOKEN"
```

The registry endpoints are token-gated (create a free account in the app, then copy the registry token). The raw source is also readable at `/api/registry/<library>/<name>.json`.
