0Views
0Copies

API Reference
Props for <ParticleText />
| Prop | Type | Default | Description |
|---|---|---|---|
| backgroundColor | string | "#e5e5e2" | The surface behind the dots. |
| padding | number | 0 | Space around the text inside the background, of the width, so a colored background reads as a panel. |
| cornerRadius | number | 0 | Rounds the background’s corners. |
| color | string | "#141414" | The dots at rest. |
| activeColor | string | "#ff8a1f" | Dots knocked out of place, until they settle back home; set it to the dot color for no glow. |
| text | string | "AXON" | The word or short line drawn in dots; it always fills the width, so a longer text is shorter. |
| font | FontValue | {"fontFamily":"Archivo","fontWeight":900,"letterSpacing":"0em"} | The family, weight and letter spacing of the text. The component doesn’t load the font: add it to your app. |
| fontStretch | 'condensed' | 'semi-condensed' | 'normal' | 'semi-expanded' | 'expanded' | "expanded" | The width of the letterforms. A font loaded with its width axis (Archivo, Anybody) uses its real condensed or expanded cut; any other font is stretched to the same width. |
| textWidth | number | 98 | How much of the component’s width the text fills; the height follows. |
| dotSize | number | 2.2 | Each dot’s size. |
| dotShape | 'square' | 'circle' | "square" | The shape of each dot. |
| density | number | 320 | Dots across the full width; the spacing follows the size, so the look holds at any width. |
| minSpacing | number | 3 | The closest the dots ever sit, so a narrow component doesn’t pack them solid. |
| interaction | 'hover' | 'hold' | 'none' | "hover" | What pushes the dots away: the pointer moving over the text, pressing and holding on it, or nothing. |
| radius | number | 90 | How far from the pointer the dots flee. |
| strength | number | 6 | How hard the dots are pushed; higher scatters them further. |
| spring | number | 0.07 | How strongly each dot is pulled back home; higher snaps back faster. |
| friction | number | 0.16 | Speed the dots lose as they move; higher settles sooner, lower swings past home and wobbles. |
| glowDistance | number | 3 | How far from home a dot must be to take the active color. |
| assemble | boolean | true | The dots fly in from a scatter and assemble the text the first time it’s seen; off starts it complete. |
| scatter | number | 1 | How far the dots start from home before they assemble. |
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#
Any font you load. 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.
The text always fills the width of its box, so a longer word comes out shorter. Give it a wide parent.
Yes. Set assemble to false to start with the word complete.
Hover isn't available on touch screens, so use interaction="hold" to push the dots with press and hold.