Hover Card
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.
Without the namespace, install straight from the URL:
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>