Tooltip
Brief supplementary text on hover or focus of a trigger element.
Small help panel: optional title plus one to three short sentences.
A small help panel: optional title plus one to three short sentences. Hover or focus shows it; click or tap pins it. Not Tooltip. Not Field hint. Not Modal.
Hover, focus, or click the help control. The panel opens below it.
Use HelpPopover for a sentence or two of optional explanation. Tooltip is a one-line name. Popover holds fields or actions. Field hint stays visible. Escape closes only the help panel, never the Popover or Modal it sits in.
import { HelpPopover } from "agentic-ds-kit";From contracts/helppopover.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 |
|---|---|---|---|---|
| title | string | No | — | Header, 14px (label) at heading weight. Omit for body only. |
| content | string | Yes | — | Plain text. One to three short sentences. No links or markdown. |
| placement | top | bottom | left | right | No | bottom | Preferred side. Flips to the other side when there is no room and stays inside the viewport. |
| delay | number | No | 150 | Hover waits; focus and click show at once. |
| open | boolean | No | — | controlled visibility |
| disabled | boolean | No | false | No panel; child still renders. |
| children | slot | Yes | — | One focusable trigger. Gets aria-describedby. Typical: kit Button appearance=ghost mode=neutral size=sm iconStart=CircleHelp ariaLabel=Help. Field help composes this. |