Atelier UI

Search components…

Search components…

Particles Background

A canvas particle network that reacts to the mouse and pauses when off-screen or the tab is hidden.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

ParticlesBackgroundProps

Also accepts all props of React.ComponentProps<"div">

PropTypeDefaultDescription
densitynumber1.1Particles per 10,000 px² of area
linkDistancenumber120Max distance in px at which two dots are linked
speednumber1Drift speed multiplier
colorstring"currentColor"Dot and line color, any CSS color. Defaults to the inherited text color
mouseRadiusnumber160Radius in px of the pointer's attract/link zone. 0 disables it

Install

$ npx shadcn@latest add https://chromotion.dev/r/particles-background.json

More like this