Theme Toggle

Light and dark switch that reveals the new theme as a circle growing from the center of the screen or from the button itself.

Preview

Circle
Ripple

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @easeui/theme-toggle

API Reference

ComponentPropTypeDefaultDescription
useThemeTogglevariant?"circle" | "ripple"circle-
ThemeTogglevariant?"circle" | "ripple"circleWhere the new theme spreads from. Default "circle".
ThemeToggleiconClassName?string--
ThemeToggleclassName?string--

Updated