- Location:
sabo/src/components/ui/particles.tsx
When to use
- Lightweight decorative particles behind hero or section headers.
- Keep density/contrast low; avoid interfering with text legibility.
Usage
sabo/src/components/ui/particles.tsx
Key props
How many particles to render.
Particle color (hex).
Base particle radius.
Constant velocity offset on X axis.
Constant velocity offset on Y axis.
Mouse interaction strength (lower = stronger attraction).
Particle movement smoothness.
Additional CSS classes applied to the container div.
Styling tip
- Mount as an absolutely positioned layer; keep
pointer-events: none. - Test light/dark themes to ensure contrast is appropriate.