kevingirelli

Spotlight

Cards 23

About

A soft radial light that follows the pointer across a card or surface, with an optional lit edge ring, for highlighting hoverable panels.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Spotlight to your project and fits it to your theme.

Code

How Spotlight is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Spotlight } from "@/components/ui/spotlight";

export default function SpotlightDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <Spotlight
        asChild
        className="w-80 rounded-xl border bg-card p-6 text-card-foreground shadow-sm"
      >
        <div>
          <h3 className="text-lg font-semibold">Move your cursor here</h3>
          <p className="mt-2 text-sm text-muted-foreground">
            The light follows it, and so does the edge.
          </p>
        </div>
      </Spotlight>
    </div>
  );
}

Dependencies

More by kevingirelli

View all
  • Aurora

    Aurora

    51
  • Warp Gradient

    Warp Gradient

    48
  • FAQ Section

    FAQ Section

    46
  • QR Code

    QR Code

    46
  • Wave Text

    Wave Text

    37
  • Corner Frame

    Corner Frame

    36
  • Animated Border

    Animated Border

    32
  • Flip Text

    Flip Text

    22

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    263
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • Course Design Cards

    Course Design Cards

    1.1K
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    290
  • Item

    Item

    10