Spotlight Card
An interactive card with a spotlight hover effect that highlights content and enhances user engagement visually.
Loading...
Installation
npx shadcn@latest add @scrollxui/spotlightcard Usage
import { SpotlightCard } from '@/components/ui/spotlight-card';<SpotlightCard className='w-80 h-72' spotlightColor='34, 211, 238'>
<div className='w-full h-full flex flex-col items-center justify-center text-center'>
<h3 className='text-xl font-semibold mb-1'>Spotlight Card</h3>
<p className='text-sm text-muted-foreground'>
Hover to see the spotlight effect.
</p>
</div>
</SpotlightCard>API Reference
SpotlightCard
The root component that creates the spotlight effect card.