Components
- Accordion
- Add to Cart
- Animated List
- Carousel
- Collapsible Sidebarnew
- Dynamic Island
- Expandable Cardnew
- Expanding Searchnew
- Filter Grid
- Kanban Board
- Layout Switcher
- Morphing Popover
- Number Flip
- Page Transition
- Product Gallery
- Segmented Control
- Sortable Table
- Stack Navigator
- Status Button
- Step Wizard
- Tabs
- Text Morphnew
- Theme Mode Switch
- Theme Morph Button
- Theme Toggle Button
- Theme Toggle Switch
- Theme Transition
- Toast Stacknew
Installation
$ pnpm dlx shadcn@latest add @transition-kit/theme-morph-buttonUsage
import { ThemeMorphButton } from "@/components/transitions/theme-morph-button";<ThemeMorphButton />
<ThemeMorphButton transition="circle-reveal" />API Reference
ThemeMorphButton
| Prop | Type | Default | Description |
|---|---|---|---|
transition | string | The provider's transition | Style slug such as "circle-reveal". Install the style first. |
...props | ComponentProps<"button"> | - | Spread onto the <button>. Calling event.preventDefault() in onClick skips the theme change. |