Dev Design Library

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.

Theme Toggle preview
Library
beUI
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add @beui/theme-toggle
Files
  • components/motion/theme-toggle.tsx
  • components/motion/action-swap.tsx
  • lib/ease.ts
  • lib/i18n.tsx
  • lib/utils.ts
Source
https://github.com/starc007/ui-components

Categories

More from beUI