Back to Components
Cards

Hover Card

Card that appears on hover with rich content preview.

PropsUsage ExampleVariations
Interactive

Hover Card

A cursor-tracking spotlight effect that reveals depth and detail on hover.

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/hover-card.tsx

Installation

Using shadcn CLI

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

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge

Related Cards Components