Components
Glowing Grid
Grid cells that light up under the cursor.
ProPro, coming soon.
Hover the grid
<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
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Content shown over the grid. | |
color | string | "#22d3ee" | Cell colour. |
cellSize | number | 32 | Cell size in pixels. |
radius | number | 120 | Pixels around the pointer that light up. |
className | string | Classes for the wrapper. |
With reduced motion, it draws one still frame and doesn't react to the pointer.