Theme Toggler

An Animated theme toggler component, fully customizable using Tailwind CSS.

@lucide/svelte

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/animated-theme-toggler.json

Usage

<script lang="ts">	import { AnimatedThemeToggler } from "#lib/components/magic/animated-theme-toggler/index.js";</script>
<AnimatedThemeToggler />

Props

Animated Theme Toggler

A component for smooth theme switching with circular reveal animation.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
durationnumber400Duration of the animation in milliseconds