Theme Toggle
View in FigmaA sun/moon toggle button for switching between light and dark themes with rotation animation.
ActionsImport
import { ThemeToggle } from "@/components/ui"API
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "sm" | "md" | "lg" | "md" | Button size. |
| mode | "light" | "dark" | "system" | "system" | Current theme mode. |
| onModeChange | (mode: "light" | "dark") => void | — | Callback when theme changes. |