Components/GretTech/Theme Toggle

Theme Toggle

An animated light/dark toggle for next-themes, with a D keyboard shortcut.

v0

Installation

Full Setup guide

Install the component automatically via Shadcn CLI.

npx shadcn@latest add https://www.grettech.com/api/registry/theme-toggle

Other Examples

With Theme Name

v0

Props

PropTypeDefaultDescription
showThemeName
booleanfalseShows a label next to the icon naming the theme it switches to ("Dark Mode" or "Light Mode").