FX · Backgrounds

A honeycomb grid with a pool of light drifting across it.

Hive mind

Terminal
npx shadcn@latest add https://www.rad-ui.com/r/hex-grid.json
React
import HexGrid from "@/components/fx/hex-grid" <HexGrid className="px-8 py-24"> <h2>Your content</h2> </HexGrid>
  • The effect layer is aria-hidden and ignores pointer events; only children are exposed.
  • Pauses offscreen; `paused` stops it on demand (wire it to a visible control if it runs behind reading content).
  • prefers-reduced-motion: reduce (or data-rad-fx-motion="reduce" on an ancestor) parks the light in the centre.
PropTypeDefaultDescription
color
stringsky, 55%

Line colour.

size
number28

Hexagon size in px.

speed
number10

Seconds for the glow to sweep.

paused
booleanfalse

Stop the animation. It also pauses offscreen.

...props
ComponentProps<'div'>—

Passed to the root div; children render above.