Spotlight card preview

Spotlight card

A card that lights up under the pointer, with a brighter rim where the light meets the edge.

  • Group
    Cards
  • Origin
    Inspired · Original (this library)
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/spotlight-card

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { SpotlightCard } from "@/registry/components/spotlight-card/spotlight-card";

<SpotlightCard>Label</SpotlightCard>

Props

PropTypeDefaultDescription
children?ReactNode
radius?number260Spotlight radius, px.
color?string"var(--glow-from)"Spotlight color.

Also accepts every prop of HTMLAttributes<HTMLDivElement>.

When to use

Feature grids where a pointer-following light adds depth.

When not to use

Touch-first UIs (no hover).

Related

Tilt card · Border beam · Holographic card