Theme switcher
CoreFour smooth ways to move between light and dark appearance.
pnpm dlx shadcn@latest add https://wui.alann.works/r/theme-switch.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
theme* | Theme | required |
variant | ThemeSwitchVariant | — |
onThemeChange* | (next: Theme, variant: ThemeSwitchVariant, trigger: HTMLElement) => void | required |
label | string | — |
iconOnly | boolean | — |