Particles

Motion

Particles is a React canvas background of drifting points that repel or attract around the pointer, colored from your accent token and sharp on high density screens.

src/registry/premium/particles.tsx/r/particles.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/particles.json

Usage#

tsx
import { Particles } from "@/components/ui/particles"

export function Example() {
  return <Particles />
}

API reference#

Particles props
PropTypeDefault
quantitynumber110
sizenumber2
colorstring"var(--accent)"
mode"repel" | "attract""repel"
radiusnumber120
driftnumber1
classNamestring-
childrenReact.ReactNode-

Dependencies#

npm

lucide-reactmotion

Built from

All Animated React components