kevingirelli

Spotlight

Cards 52

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

    172
  • QR Code

    QR Code

    141
  • FAQ Section

    FAQ Section

    101
  • Animated Border

    Animated Border

    90
  • Warp Gradient

    Warp Gradient

    72
  • Corner Frame

    Corner Frame

    71
  • Wave Text

    Wave Text

    63
  • Flip Text

    Flip Text

    44

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Statistics Card 2

    Statistics Card 2

    322
  • Card

    Card

    19
  • Reading Morph Card

    Reading Morph Card

    78
  • Stats cards with links

    Stats cards with links

    46
  • Model Grid Cards

    Model Grid Cards

    7
  • Admin Dashboard Cards

    Admin Dashboard Cards

    49
  • Card

    Card

    2