Hover Card
Displays a preview card when hovering or focusing a link, built on the Base UI Preview Card primitive.
Installation
Bash
Usage
API reference
HoverCard
Extends the
Base UI Preview Card
Root — no modal prop; hover-open is built in. Not accessible to touch
or screen-reader users by design — preview cards are a progressive
enhancement over the underlying link, which remains fully operable on
its own.
| Prop | Type | Default |
|---|---|---|
open / defaultOpen | boolean | false |
onOpenChange | (open: boolean) => void | — |
HoverCardTrigger
Renders a real link (<a>) and needs an href — preview cards exist to
preview link destinations.
| Prop | Type | Default |
|---|---|---|
href | string | — required |
delay | number | 600 (ms) |
closeDelay | number | 300 (ms) |
HoverCardContent
| Prop | Type | Default |
|---|---|---|
side / align | positioner placement | "bottom" / "center" |