Spotlight Follow
Spotlight Follow is a React and Tailwind CSS background component from Motion Primitives, licensed MIT. Copy it and paste it into your project.
Motion Primitives
MIT
backgrounds
What it is
Spotlight Follow is a React and Tailwind CSS background component from Motion Primitives, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Four free copies a week. No card.
No packages beyond the project baseline
Licence
This component comes from Motion Primitives and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Spotlight Follow
import { Spotlight } from '@/components/core/spotlight';
export function SpotlightBorder() {
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>
);
}