Spotlight card
Card with a cursor-reactive pastel border glow. Border colour shifts based on where the cursor sits within the card.
- CSS Border
- Pointer Events
- requestAnimationFrame
Analytics
Real-time dashboard with live metrics and trend analysis.
Notifications
Smart alerts that learn your preferences over time.
Settings
Fine-grained control over every aspect of your experience.
Integrations
Connect with 200+ services through a unified API.
Security
End-to-end encryption with zero-knowledge architecture.
Billing
Transparent pricing with no hidden fees or surprises.
Usage
Drop it in
import { SpotlightCard } from "@/app/lib/primitives/spotlight-card";API
Props
| Prop | Type | Default |
|---|---|---|
children* | ReactNode | — |
className | string | "" |
onClick | () => void | — |
Read from the component's source at build time. * required.
Accessibility
Works with
- Cursor
- Reacts to where the pointer is, not just whether it's over the element.
- Touch
- Follows your finger while it's down, then settles a moment after you lift.
- Keyboard
- Focus lights it up the way the cursor does. Every action has a key.
- Reduced motion
- Nothing moves or springs. Colour still answers, without drifting.