Pricing

Theme Toggler

Theme toggle with View Transitions and animated clip-path masks (circle, polygons, star), optional viewport-centered origin.

7,428

Bookmarks

17,628

Installs

12,228

Views

9 lines
import { AnimatedThemeToggler } from "@/components/ui/animated-theme-toggler"

export default function AnimatedThemeTogglerDemo() {
  return (
    <div className="flex justify-center p-6">
      <AnimatedThemeToggler />

3 more lines behind a plan

Previews are free to watch. Reading and copying the full source needs a plan.

See plans
Dependencies
lucide-react
License
MIT License
Published
1/21/2025
Categories

Similar components

That's all 6 components

Explore more

Part of Magic UI — browse the full library on Nuxus.