Dev Design Library

Switch Button

Light and dark theme toggle whose sun folds into a moon while the new theme spreads from the button as a circle.

Switch Button preview
Library
Kokonut UI
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add @kokonutui/switch-button
Files
  • components/kokonutui/switch-button.tsx
  • lib/utils.ts
Source
https://github.com/kokonut-labs/kokonutui

Categories

More from Kokonut UI