design-infraGitHub
Report a problem or share feedback← Catalog

Theme Toggle

free

beui/theme-toggle

Theme toggle button that repaints the whole page through the View Transition API — a rectangle or circle clip-path reveal, or slats that open across the screen like a shutter.

state · enter — subtledrop-inTechnicalRefinedPlayful
$npx shadcn@latest add @beui/theme-toggle

npm deps: clsx, lucide-react, motion, next-themes, tailwind-merge

Source
beUI (free)
Kind
component
Categories
input
Use as
drop-in — replaces your component
Applies to
input
Motion
on state, enter · subtle · motion · medium cost
Tags
react, tailwind-v4, motion, motion
Licence
MIT — Copyright (c) 2026 Saurabh Chauhan; retain the upstream notice when copying source.
Live demo
beui.dev
Docs
beui.dev