Primitive
CLI registryReact Theme Toggle Component
An elegant React theme toggle component built for Tailwind CSS and next-themes with soft-rect radius options.
Preview → install → use
01
Preview
npx shadcn@latest add @atroui/theme-toggleSource lands in your repo. Setup: Installation · Registry catalog.
02
Usage
Requires next-themes ThemeProvider. Compact sun/moon: @atroui/theme-toggle-icon. If a naive dark mode hides body copy, use @atroui/theme-adapt.
03
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | - | Extra classes. |
Theme Toggle