Components
Loading preview...
A dynamic spotlight effect component that follows cursor movement.
@motion-primitives
npx shadcn@latest add https://21st.dev/r/ibelick/spotlight"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>
);
}