Skip to content
Magic UI SolidMagicUI Solid

Morphing Text

A dynamic text morphing component for Magic UI.

@/demos/MorphingTextDemo.tsx
import { MorphingText } from '@/registry/magicui/morphing-text'
const texts = [
'Hello',
'Morphing',
'Text',
'Animation',
'React',
'Component',
'Smooth',
'Transition',
'Engaging',
]
export function MorphingTextDemo() {
return <MorphingText texts={texts} />
}
Terminal window
pnpm dlx shadcn@latest add @magicui-solid/morphing-text
import { MorphingText } from '@/components/magicui/morphing-text'
<MorphingText texts={['Hello', 'World']} />
Prop Type Default Description
texts string[] [] Array of texts to morph between
class string? "" Additional classes for the container

This MorphingText component dynamically transitions between an array of text strings, creating a smooth, engaging visual effect.

Original:

magicui.design/docs/components/morphing-text