Particle Text — the word AXON drawn in tiny square dots, a few scattered by the cursor glowing amber

API Reference

Props for <ParticleText />

S

Motion score

Compositor-only

Category
Text Effects
Framework
React
Published
Oct 30, 2026
Dependencies
Variants

Particle Text: text particles for React

A word drawn in thousands of tiny dots sampled from a real font. The dots fly in and assemble the word, the pointer pushes them away, and a spring pulls each one back home.

Use Particle Text for a wordmark, a hero headline or a brand name that reacts to the person looking at it. Set the text, font, colors, dot size, shape, density, push and spring with props. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.

What is Particle Text?

Particle Text is a React canvas component that turns any word into text particles. It samples the shape of a real font, so the letters stay readable even while the dots scatter. It's a particle text effect you restyle with props, with no canvas code to write.

How Particle Text works

The first time it scrolls into view, the dots fly in from a scatter and assemble the text. Set assemble to false to start with the word complete. After that, the pointer pushes dots away within radius, with a force set by strength. spring pulls each dot back home, and friction decides how fast it settles. Lower friction lets dots swing past home and wobble.

Dots knocked out of place take the activeColor until they settle; set it to the dot color for no glow. interaction chooses what pushes the dots: hover, hold for press and hold, or none.

Customization options

Set dotShape to square or circle, and density for the number of dots across the width. Set backgroundColor, padding and cornerRadius to put the text on a colored panel. The text always fills the width of its box, so a longer word comes out shorter. The font isn't bundled, so load it in your app. A font with a width axis, such as Archivo or Anybody, uses its real condensed or expanded cut.

Use cases

  • Wordmarks. A brand name that scatters under the cursor and rebuilds.
  • Hero headlines that invite people to play before they scroll.
  • Branded looks. Night is pale dots on near-black with an amber glow. Neon is round cyan dots on midnight blue that flare pink. Press is navy ink on warm paper that scatters only while you press and hold.

FAQs