Glow Card Grid

A high-performance card grid with a shared, cursor-tracking glow that dynamically reacts across neighboring cards. Built with a single animation loop and zero re-renders for smooth, scalable interactions.

Scarlet's avatar

Scarlet

@scarlet
USADesigner
Yuji Tanaka's avatar

Yuji Tanaka

@yujitech
CanadaAI Engineer
Emma Walker's avatar

Emma Walker

@emmawalker
USADeveloper
Sofia Martinez's avatar

Sofia Martinez

@sofiadesigns
SpainProduct Designer
Noah Fischer's avatar

Noah Fischer

@noahdev
GermanyBackend Engineer
Hassan's avatar

Hassan

@hassan
UAEDesigner

Examples

Card

Sofia's avatar

Sofia Martinez

@sofia

Installation

$ npx shadcn@latest add https://akshitr.com/r/glow-card-grid.json

Usage

import { GlowCard, GlowCardGrid } from "@/registry/components/glow-card";
 
export default function GlowCardGridDemo() {
  return (
    <GlowCardGrid>
      <GlowCard />
      <GlowCard />
      <GlowCard />
    </GlowCardGrid>
  );
}

Component API

GlowCardGrid

PropTypeDefaultDescription
childrenReact.ReactNodeThe GlowCard elements to render inside the grid.
glowSizenumber600Controls the radius of the glow effect and interaction range.
classNamestringAdditional Tailwind classes for layout customization.

GlowCard

PropTypeDefaultDescription
titlestringUsed for avatar alt text (accessibility).
avatarstringImage source for the card background.
childrenReact.ReactNodeCustom content inside the card.
glowSizenumber600Size of the glow element (should match grid for consistency).
classNamestringAdditional Tailwind classes.