Components/GretTech/Particle Morph Text

Particle Morph Text

Words built from thousands of particles that swirl from one word into the next and scatter away from the cursor.

v0

Move your cursor through the letters

Installation

Full Setup guide

Install the component automatically via Shadcn CLI.

npx shadcn@latest add https://www.grettech.com/api/registry/particle-text

Other Examples

Dense Particles

v0

Props

PropTypeDefaultDescription
words*
string[]-Words to cycle through. Short words read best.
interval
number3200Milliseconds each word stays before morphing.
colors
string[]Deep cyan → violet → pink in light mode, bright in dark modeGradient across the text, left to right. The default switches with the theme.
density
number4Distance between particles in px; smaller is denser and heavier.
particleSize
number2.5Particle size in px.
repelRadius
number90How far the cursor pushes particles, in px. 0 turns it off.
fontWeight
number800Weight of the font the words are sampled from. The font family is inherited.
label
string-Accessible text. Defaults to the words joined with commas.
className
string-Extra classes for the canvas wrapper (set its height here; default h-48).
...props
React.HTMLAttributes<HTMLDivElement>-Any other attributes, passed to the canvas wrapper (set its height here; default h-48).