# ThemeToggle

Light / dark switcher — persists to localStorage, syncs across tabs, no FOUC.

**Install:** `nimbus-docs add theme-toggle`  
**Source:** `src/components/ui/theme-toggle/`  
**Canonical:** https://nimbus-docs.com/components/theme-toggle/

## Agent payload (JSON)

```json
{
  "slug": "theme-toggle",
  "name": "ThemeToggle",
  "description": "Light / dark theme switcher button.",
  "tagline": "Light / dark switcher — persists to localStorage, syncs across tabs, no FOUC.",
  "install": "nimbus-docs add theme-toggle",
  "sourcePath": "src/components/ui/theme-toggle/",
  "canonicalUrl": "https://nimbus-docs.com/components/theme-toggle/",
  "props": [],
  "registryDependencies": [
    "cn"
  ],
  "dependencies": []
}
```
