Draft. Ported from the shadcn-vue Hover card (style reka-nova, read 12 November 2026) and restyled with Beehexa tokens. Not yet approved. It is in the registry so teams can try it; the API may still change before approval.
A hover card previews what a link points to: a person, an order, a product. It opens while the pointer rests on the link or the link has keyboard focus, and closes when they leave.
When to use
- To preview a linked record so people can decide whether to open it: a customer in a list, an order number in a log.
- When the preview is extra. The link must work and make sense without it.
When not to use
- For anything people need to finish a task. Touch screens never show a hover card, and screen readers skip it. Put it on the page.
- For buttons or fields inside. People can’t reach them reliably before the card closes. Use a popover.
- For one line of text about a control. Use a tooltip.
- On something that is not a link. Only a link gives keyboard users a way to open it.
Behaviour
- Opens after the pointer rests for 300 ms (
motion.wait.tooltip.show, the same wait as a tooltip), and when the link gets keyboard focus. - Stays while the pointer moves from the link onto the card.
- Closes shortly after the pointer leaves both, when focus moves away, or on Esc.
- Opens below the link, centred, 4 px away, and flips when there is no room. 288 px wide by default (
size.overlay.width, as Popover).
Content
- A name or title first, then two or three facts. No paragraphs.
- No actions. If people need to act, they open the link.
Tokens
| Part | Tokens |
|---|---|
| Surface | color.surface.overlay, no border |
| Corners | radius.overlay |
| Shadow, layer | elevation.shadow.overlay, z-index.overlay |
| Padding | space.overlay.content (16 px) |
| Distance from the link | space.overlay.offset (4 px) |
| Open delay | motion.wait.tooltip.show (300 ms) |
| Text | font.body.default, color.text |