Installation
npx shadcn@latest add @iconiq/morph-textsProps
MorphText
8 props
Cycling headline treatment that morphs between words with blur, scale, and an SVG goo filter while optionally revealing subtext beneath the rotator.
words
string[]Required
Words or short phrases to cycle through. The component advances to the next entry on each interval tick.
interval
numberDefault
3000Milliseconds each word stays active before the next morph transition begins.
subtext
stringOptional supporting line rendered below the morphing word with a delayed fade-up entrance.
fontSize
stringDefault
"clamp(3rem, 15vw, 10rem)"CSS font-size value applied to the morphing headline container.
fontFamily
stringDefault
"Space Grotesk", sans-serifCSS font-family value applied to the headline and subtext.
className
stringMerged onto the root wrapper for layout and color overrides.
textClassName
stringMerged onto the morphing text container when you need local typography overrides.
subtextClassName
stringMerged onto the optional subtext element.
Notes
The active word is announced through aria-live=polite so screen readers can follow the rotation.
Each instance generates a unique SVG filter id so multiple MorphText components can coexist on one page.