Browse components
Particles
A drifting constellation that links nearby points and flees the cursor.
Particles
Installation
npx shadcn@latest add @glint-ui/particlesFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/particles.json
Usage
import { Particles } from "@/components/ui/particles";
<div className="relative h-96">
<Particles count={100} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| count | number | 80 | Number of particles. |
| color | string | "#ffffff" | Particle and link color. |
| speed | number | 0.4 | Px per frame. |
| linkDistance | number | 110 | Max px between linked particles. |
| interactive | boolean | true | Particles flee the cursor. |
| className | string | — | Extra classes for the root element. |