Theme Toggle
An animated light/dark toggle for next-themes, with a D keyboard shortcut.
Installation
Full Setup guideInstall the component automatically via Shadcn CLI.
npx shadcn@latest add https://www.grettech.com/api/registry/theme-toggleProps
| Prop | Type | Default | Description |
|---|---|---|---|
showThemeName | boolean | false | Shows a label next to the icon naming the theme it switches to ("Dark Mode" or "Light Mode"). |