Animation
Particle spray
Particle spray: Hold the pointer down on a control and it sprays small particles from wherever the pointer is, each arcing up, spinning, then falling away and clearing itself.
Using Particle spray
Particle spray uses the inline preview frame with a dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
emitRate | number | 25 | From 5 to 60; step 1 |
size | number | 16 | From 6 to 40; step 2 |
lift | number | 18 | From 5 to 40; step 1 |
accent | color | #38BDF8 | No additional limit in the metadata. |
shape | select | dot | Options: dot, square, ring |
Which frameworks are available for Particle spray?
Particle spray is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Particle spray depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Particle spray?
The React source for Particle spray includes: attributes and handlers (aria-hidden, onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Particle spray handle reduced motion?
Particle spray reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.