Skip to content
Backgrounds

MagneticGrid

A dot grid. Dots near the pointer push away, grow and light up, then settle back. Idle when nothing moves.

Download
  • React
  • Tailwind CSS v4

Props

NameTypeDefaultWhat it does
childrenReactNode—Content shown over the grid.
colorstring"#a78bfa"Colour dots light up to.
dotstring"rgba(255,255,255,0.18)"Colour of dots at rest.
backgroundstring"#07060f"Base colour.
gapnumber22Space between dots in pixels.
radiusnumber120Reach of the pointer in pixels.
classNamestring""Give it a height here.