Tooltip
Brief supplementary text on hover or focus of a trigger element.
A read-only preview card on hover or focus of one trigger, like the passage behind a citation. Fades and rises in.
A read-only preview of what a trigger points to, on hover or focus. It fades and rises in. Not Tooltip. Not HelpPopover. Not Popover.
Hover or focus the customer. Enter or Space toggles the card; Escape closes it.
Use HoverCard to preview a citation, a mention or a record without leaving the text. Keep it read-only: no buttons, links or fields (use Popover for those). On touch the first tap pins it; the trigger's own click runs on the next tap. CitedAnswer composes it for its marks.
import { HoverCard } from "agentic-ds-kit";From contracts/hovercard.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| content | slot | Yes | — | The card body: compose kit text and Avatar. Read-only: no buttons, links or fields. Also rendered hidden as the trigger's description. |
| children | slot | Yes | — | One focusable trigger. Gets aria-describedby. |
| placement | top | bottom | left | right | No | top | Preferred side. Flips when there is no room and stays inside the viewport. |
| delay | number | No | 150 | Hover waits; focus, Enter, Space and a tap show at once. Leaving waits 100ms so the pointer can reach the card. |
| open | boolean | No | — | Controlled visibility. |
| onOpenChange | function | No | — | (open) => void, controlled or not. |
| disabled | boolean | No | false | No card; the trigger still renders. |
Brief supplementary text on hover or focus of a trigger element.
Small help panel: optional title plus one to three short sentences.
A panel anchored to a trigger.
An assistant reply with inline citation marks that preview their passage in a hover card, and sources folded into one pill with site icons.