Astro components
Theme toggle
A button to toggle light/dark mode.
A button that switches the application theme between light and dark modes.
---
import ThemeToggle from '@/components/ThemeToggle.astro';
---
<ThemeToggle />
| Prop | Type | Default | Description |
|---|
class | string | - | Additional CSS classes for the button. |