Glow Card
A card with a radial glow that follows the cursor. Customizable glow color.
utils
Move your cursorThe glow follows it
Installation
$ pnpm dlx shadcn@latest add @soultel/glow-cardNo namespace set up? npx shadcn@latest add https://asafefe.dev/r/glow-card.json works too.
Manual installation
- 1. Copy the source from the Code tab into components/glow-card.tsx.
Usage
import { GlowCard } from "@/components/glow-card"
export function Example() {
return (
<GlowCard className="w-64">
<div className="p-6">Hover me</div>
</GlowCard>
)
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
| glow | string | "var(--primary)" | Glow color. |
| size | number | 280 | Glow diameter in px. |
