Spotlight
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-spotlightAbout this component
A soft circle of light fades in under the cursor and follows it across the button, written to CSS custom properties on mousemove so nothing re-renders. The rest of the button stays dark. No dependencies.
Triggers
- Hover
- Mouse tracking
- Spotlight
Techniques
- Mouse tracking
- CSS variables
- Gradient
Difficulty
Beginner
Accessibility
Keyboard and screen readers
Effect is purely visual and does not affect interaction.
Reduced motion
Acceptable under prefers-reduced-motion as it is not animated but cursor-driven.
Use it in anything you build, commercial and client work included. Licence