Back to Components
Cards

Spotlight Hover Card

Card with a cursor-following spotlight glow and soft hover lift.

Focus

Spotlight Hover Card

A cursor-following glow that reveals depth and detail.

Dependencies

  • clsx
  • tailwind-merge
  • framer-motion

Files

  • components/ui/spotlight-hover-card.tsx

Installation

Using shadcn CLI

npx shadcn add spotlight-hover-card --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge framer-motion