Skip to main content
  • 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

number
default:"100"
How many particles to render.
string
default:"#ffffff"
Particle color (hex).
number
default:"0.4"
Base particle radius.
number
default:"0"
Constant velocity offset on X axis.
number
default:"0"
Constant velocity offset on Y axis.
number
default:"50"
Mouse interaction strength (lower = stronger attraction).
number
default:"50"
Particle movement smoothness.
string
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.