pulkitxm

Cursor Spotlight

Component 29

About

A container that dims its background and reveals a bright radial spotlight that follows the cursor on hover.

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

Code

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

Usage.tsx

import { CursorSpotlight } from "@/components/ui/cursor-spotlight";

export default function CursorSpotlightDemo() {
  return (
    <CursorSpotlight className="h-40 rounded-2xl border">
      <div className="flex h-full items-center justify-center">
        <span className="text-sm text-white/50">
          Move cursor for spotlight
        </span>
      </div>
    </CursorSpotlight>
  );
}

More by pulkitxm

View all
  • Handwriting SVG

    Handwriting SVG

    429
  • Aurora Background

    Aurora Background

    151
  • Party Popper

    Party Popper

    50
  • Scroll-Linked Video Scrubber

    Scroll-Linked Video Scrubber

    34
  • Horizontal Scroll Gallery

    Horizontal Scroll Gallery

    32
  • Fluid Cursor Trail

    Fluid Cursor Trail

    32
  • Not Found Page

    Not Found Page

    15
  • Infinite Circular Scroll

    Infinite Circular Scroll

    8