Sequence
docs
Astro components

Theme toggle

A button to toggle light/dark mode.

A button that switches the application theme between light and dark modes.

Usage

---
import ThemeToggle from '@/components/ThemeToggle.astro';
---

<ThemeToggle />

Props

PropTypeDefaultDescription
classstring-Additional CSS classes for the button.

On this page