Eclipse
CoreThe next appearance crosses the page like an eclipse.
pnpm dlx shadcn@latest add https://wui.alann.works/r/theme-switch-eclipse.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
theme* | Theme | required |
variant | ThemeSwitchVariant | — |
onThemeChange* | (next: Theme, variant: ThemeSwitchVariant, trigger: HTMLElement) => void | required |
label | string | — |
iconOnly | boolean | — |