A theme toggle button that transitions between light and dark modes with a circular reveal animation.
npx shadcn-vue@latest add https://raya-ui.com/registry/animated-theme-toggler.jsonOr manually:
npm install lucide-vue-next clsx tailwind-mergeYou can customize the appearance using standard Tailwind classes.
| Prop | Type | Default | Description |
|---|---|---|---|
| theme | string | dark | Current theme |
| duration | number | 400 | Duration of the clip-path animation in milliseconds. |
| class | string | '' | Custom classes for the button element. |
| Event | Payload | Description |
|---|---|---|
| update:modelValue | any | Fired when theme changes. |