Back to Components
Cards

Spotlight Card

Interactive card that tracks the cursor with a glowing spotlight highlight.

Interactive

Spotlight Card

Tracks your cursor with a glowing spotlight that reveals detail.

Dependencies

  • clsx
  • tailwind-merge
  • framer-motion

Files

  • components/ui/spotlight-card.tsx

Installation

Using shadcn CLI

npx shadcn add spotlight-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