A fluid text primitive that blends one value into the next while preserving its visual center and inheriting the surrounding typography.
pnpm dlx shadcn@latest add @componentry/text-morphimport { TextMorph } from "@/components/ui/text-morph"
<TextMorph
words={["IMAGINE", "REFINE", "RELEASE"]}
className="text-4xl font-bold tracking-tight md:text-5xl"
/>| Property | Type | Default |
|---|---|---|
wordsText, numbers, prices, or short phrases displayed by the morph sequence. | string[] | ["IMAGINE", "REFINE", "RELEASE"] |
intervalTime each value rests before the next morph begins, in milliseconds. | number | 2600 |
morphDurationDuration of the fluid morph in milliseconds. | number | 680 |
classNameAdditional classes for layout or typography. All visual text properties inherit naturally. | string | — |
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.