Skip to Content
zjkm-ui
Components

Glowing Grid

Grid cells that light up under the cursor.

ProPro, coming soon.

Hover the grid

Props
32px
120px
<GlowingGrid>
  <Hero />
</GlowingGrid>

Get notified

Glowing Grid is a Pro effect. Join the waitlist and we'll email you when it's available.

Usage

A faint grid whose cells light up under the pointer and fade slowly behind it, leaving a glowing trail. It draws on a canvas, and the drawing stops while it's off-screen or the tab is hidden. Without canvas support, your content shows on its own.

import { GlowingGrid } from "@zjkm/pro/glowing-grid";

export function Hero() {
  return (
    <GlowingGrid className="rounded-2xl bg-neutral-950 p-16">
      <h1 className="text-white">Light it up</h1>
    </GlowingGrid>
  );
}

Props

PropTypeDefaultDescription
childrenReactNodeContent shown over the grid.
colorstring"#22d3ee"Cell colour.
cellSizenumber32Cell size in pixels.
radiusnumber120Pixels around the pointer that light up.
classNamestringClasses for the wrapper.

With reduced motion, it draws one still frame and doesn't react to the pointer.

On this page