Theme switcher

Core

Four smooth ways to move between light and dark appearance.

pnpm dlx shadcn@latest add https://wui.alann.works/r/theme-switch.json

API Reference

PropTypeDefault
theme*Themerequired
variantThemeSwitchVariant—
onThemeChange*(next: Theme, variant: ThemeSwitchVariant, trigger: HTMLElement) => voidrequired
labelstring—
iconOnlyboolean—
Categories
actions
Dependencies
lucide-reactmotion