FX · Backgrounds

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

Hive mind

bash
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
string
sky, 55%

Line colour.

size
number
28

Hexagon size in px.

speed
number
10

Seconds for the glow to sweep.

paused
boolean
false

Stop the animation. It also pauses offscreen.

...props
ComponentProps<'div'>
—

Passed to the root div; children render above.