Dev Tools
ThemeToggle
Light/dark mode toggle button. Sets data-theme attribute on the document root and persists the choice in localStorage.
Import
import ThemeToggle from '../../components/utility/ThemeToggle.astro'; Props
No props. The component reads and writes theme state via localStorage and data-theme attribute.