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
transitiontransition
Installation
$ pnpm dlx shadcn@latest add @transition-kit/text-morphUsage
import { TextMorph } from "@/components/transitions/text-morph";<TextMorph>{copied ? "Copied!" : "Copy link"}</TextMorph>Change the text with a plain setState; TextMorph starts the transition itself. Letters are matched by character and occurrence, so the ts in "transition" and "station" glide to their new spots while the others fade.
API Reference
TextMorph
| Prop | Type | Default | Description |
|---|---|---|---|
children | string | - | The text to show. Each change morphs from the previous string. |
Screen readers get the full string; the animated letters are hidden from them.