Installation
Usage
import { MorphingText } from "@/components/magicui/morphing-text";<MorphingText texts={["Hello", "World"]} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
texts | string[] | [] | Array of texts to morph between |
className | string? | "" | Additional classes for the container |
This MorphingText component dynamically transitions between an array of text strings, creating a smooth, engaging visual effect.
Credits
- Credit to @luis-code