About
A dynamic spotlight effect component that follows cursor movement.
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
"use client";
import { Spotlight } from "@/components/ui/spotlight";
export function BorderGlowSpotlight() {
return (
<div className='relative aspect-video h-[200px] overflow-hidden rounded-xl bg-zinc-300/30 p-[1px] dark:bg-zinc-700/30'>
<Spotlight
className='from-blue-600 via-blue-500 to-blue-400 blur-3xl dark:from-blue-200 dark:via-blue-300 dark:to-blue-400'
size={124}
/>
<div className='relative h-full w-full rounded-xl bg-white dark:bg-black'></div>
</div>
);
}















