Skip to content

A preview card shown on hover, drawn as the same opaque Mac OS X menu sheet as Popover (hairline border, float shadow), or as a smoked HUD panel with variant="hud".

Installation

Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.

pnpm dlx shadcn@latest add @skeuomorph/hover-card

Without the namespace, install straight from the URL:

pnpm dlx shadcn@latest add https://ui-skeuomorph.vercel.app/r/hover-card.json

Usage

import {
  HoverCard,
  HoverCardContent,
  HoverCardTrigger,
} from "@/components/ui/hover-card"
<HoverCard>
  <HoverCardTrigger>Hover</HoverCardTrigger>
  <HoverCardContent>
    @skeuomorph: Aqua and iPhone OS components for shadcn/ui.
  </HoverCardContent>
</HoverCard>

HUD

HoverCardContent accepts variant="hud" for the smoked heads-up panel, the same surface as the Popover HUD.

<HoverCardContent variant="hud">...</HoverCardContent>