kevingirelli

Spotlight

Cards 40

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
  • QR Code

    QR Code

    125
  • Aurora

    Aurora

    115
  • FAQ Section

    FAQ Section

    73
  • Animated Border

    Animated Border

    67
  • Warp Gradient

    Warp Gradient

    58
  • Corner Frame

    Corner Frame

    54
  • Wave Text

    Wave Text

    53
  • Flip Text

    Flip Text

    28

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    36
  • Course Design Cards

    Course Design Cards

    1.2K
  • Statistics Card 2

    Statistics Card 2

    298
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    521
  • Statistics Card 7

    Statistics Card 7

    319
  • Card Studio

    Card Studio

    37
  • The Item one

    The Item one

    3
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K