Black Friday 40% off everything

Sale ends in

Hero 368 - Magnet Dots Hero

Pro

A full-screen hero covered in a fine grid of dots that scatter away from the cursor on springs, flaring into bold colour as they move and settling back into place.

Shadcn Hero 368 block

Component data

ID
hero368
Access
pro
Created
Nov 7, 2026
Type
block
Libraries
Radix UI, Base UI, React Aria

Hero 368 block design & features

Hero368 is a full-screen interactive hero built with shadcn/ui and React Three Fiber. A dense grid of small grey dots covers the section, with a left-aligned heading, a description and two buttons on top.

The dots are one instanced draw call. Each dot is a spring tied to its grid position, and a repulsion force pushes it away from the magnet. As dots move they grow and take a colour from the palette based on the direction they were pushed, so every disturbance blooms into a ring of colour that fades as the springs pull the grid back together.

The cursor is the magnet. When it rests, two magnets wander the grid and a shockwave ripples out every couple of seconds, so the hero always looks alive. Reduced motion holds the grid still. The copy, palette and speed are props, and the resting dots adapt to light and dark themes. It suits security, filtering and developer tools.