# Particle Scatter

> Each press breaks the phrase into particles that regroup.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Transitions |
| Live preview | https://uibrik.com/components/particle-scatter |
| Writes | 1 files into `components/uibrik/particle-scatter/`, plus `components/uibrik/scatter-text/shatter-text.tsx` |
| Packages | none beyond React |
| Builds on | [scatter-text](https://uibrik.com/components/scatter-text.md) (installed with it) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/particle-scatter.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/particle-scatter`.

Can't run commands? https://uibrik.com/components/particle-scatter/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { ParticleScatter } from "@/components/uibrik/particle-scatter/particle-scatter";

const words = ["Scatter the words", "Gather them again", "Into something new"];

<ParticleScatter
  play={0}
  words={words}
  waveSpeed={1.25}
  particleCount={3000}
  scatterMin={18}
  scatterMax={44}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/particle-scatter.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `words` | `string[]` | `["Scatter the words","Gather them again","Into something new"]` | Cycled through, one per play. |
| `waveSpeed` | `number` | `1.25` | Speed of the scatter wave. |
| `particleCount` | `number` | `3000` | Particles sampled across the text. |
| `scatterMin` | `number` | `18` | Closest a particle scatters. |
| `scatterMax` | `number` | `44` | Farthest a particle scatters. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `play` (required) | `number` |  | Each change plays the effect again; 0 shows its resting state. |

## Where it fits

- **Clickable hero headlines**: Each press breaking the phrase into particles makes the hero interactive. Pairs with [Scatter Text](https://uibrik.com/components/scatter-text.md).
- **Portfolio intros**: Particles regrouping into the next phrase work for introducing several roles.
- **Tech brands**: A particle effect suits AI, data and science products.

## Same shelf: Transitions

- [Redact and Reveal](https://uibrik.com/components/redact-reveal.md): Black bars redact a line, then lift to reveal the next.
- [Rolling Word](https://uibrik.com/components/rolling-word.md): One word rolls to the next like a drum.
- [Scatter Text](https://uibrik.com/components/scatter-text.md): Phrases shatter into particles that regroup into the next phrase.
- [Scramble to Word](https://uibrik.com/components/scramble-to-word.md): A split-flap board scrambles to the next word.
- [Slot-machine Letters](https://uibrik.com/components/slot-letters.md): Each letter spins like a reel and lands on the next word.
- [Status Stamp](https://uibrik.com/components/status-stamp.md): An ink stamp slams down: approved, in review, rejected.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/particle-scatter/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
