Files
astro-payload-test/astro/src/components/ThemeSwitcher.astro
2024-05-19 18:06:38 +02:00

13 lines
318 B
Plaintext

---
---
<select id="theme-selector">
<option value="autonomic">Autonomic</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
<script>
import { handleThemeChange, switchTheme, initializeThemeSelector } from "@/utils/theme"
initializeThemeSelector()
</script>