Hover Card

A card that appears below a trigger on mouse hover to preview extra detail such as a user profile or link summary. A light take on the shadcn hover card.

src/registry/ui/hover-card.tsx/r/hover-card.json

Installation#

bash
npx shadcn@latest add @minidev/hover-card

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/hover-card.json

Usage#

tsx
import { HoverCard } from "@/components/ui/hover-card"

export function Example() {
  return <HoverCard />
}

API reference#

HoverCard props
PropTypeDefault
trigger*React.ReactNode-
children*React.ReactNode-
classNamestring-

* required

All dialog, drawer and popover components

Learn more