1. Docs

Theme Toggle

Easy to add toggle to let user change the theme between light and dark.

Example

Usage

<script>
  import ThemeToggle from '$lib/dist/components/ThemeToggle.svelte';
</script>

<ThemeToggle />