Glow Card

A card whose border lights up where the cursor is. Grids glow together.

no dependenciesMIT · free
StarterEverything to ship a landing page.
StudioFor teams shipping every week.
AgencyUnlimited client projects.

Installation

npx shadcn@latest add https://ombakui.com/r/glow-card.json

Usage

import { GlowCard } from "@/components/glow-card";

<div className="grid grid-cols-3 gap-4">
  <GlowCard><div className="p-6">Starter</div></GlowCard>
  <GlowCard><div className="p-6">Studio</div></GlowCard>
  <GlowCard><div className="p-6">Agency</div></GlowCard>
</div>

Props

PropTypeDefaultDescription
children*ReactNode–
colorstring"rgba(94, 240, 200, 0.9)"Glow color. Any CSS color.
sizenumber320Glow radius in px.
surfacebooleantrueAlso light up the card's surface, not just its border.
classNamestring–