Theme Toggle
ComponentsReactFontAwesomeDark/light mode switch with localStorage persistence and system preference detection. Button and icon variants.
Usage
1 import { ThemeToggle } from "@/shared/ui/theme-toggle"; 2 3 // Button variant (default) — ghost button with icon 4 <ThemeToggle /> 5 6 // Icon variant — minimal, for headers and toolbars 7 <ThemeToggle variant="icon" /> 8 9 // With custom className 10 <ThemeToggle variant="icon" className="text-primary" />