About
Card whose radial-gradient spotlight tracks the cursor as it moves inside, fading in on hover and parking itself off-canvas when the pointer leaves, with configurable gradient size, color, and opacity.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Card Spotlight to your project and fits it to your theme.
Code
How Card Spotlight is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { CardSpotlight } from "@/components/ui/fancy-card-spotlight"
export default function CardSpotlightDemo() {
return (
<CardSpotlight className="h-64 w-80" gradientColor="#262626">
<div className="relative z-20 p-6">
<h3 className="text-foreground text-lg font-bold">Card Spotlight</h3>
<p className="text-muted-foreground mt-2 text-sm">
Mouse-following radial gradient effect.
</p>
</div>
</CardSpotlight>
);
}












