HelpPopover
Small help panel: optional title plus one to three short sentences.
A panel anchored to a trigger.
A panel anchored to a trigger. Click opens it. Escape and a click outside close it and return focus to the trigger.
Help text is HelpPopover. A menu of commands is DropdownMenu. A blocking step is Modal.
The trigger is one focusable control. The panel is a dialog named by label. It takes the same eyebrow, tone, title and footer as Modal. Focus moves to the first field and Tab stays inside until Escape or a click outside.
A panel anchored to a trigger. Click opens it. Escape and a click outside close it.
import { Popover } from "agentic-ds-kit";From contracts/popover.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 |
|---|---|---|---|---|
| trigger | element | Yes | — | One focusable control. Click toggles the panel. |
| children | slot | Yes | — | Panel content. |
| label | string | Yes | — | Names the dialog. |
| title | string | No | — | Heading at the top of the panel, 18px at heading weight. eyebrow and tone show only with a title. label still names the dialog. |
| eyebrow | string | No | — | Short area name above the title, 12px, like Billing · Invoices. Caller-provided. |
| tone | enum | No | neutral | Tone icon (16px, aria-hidden) and status word from KitLabels before the eyebrow, so status is never colour alone. Same header as Modal. neutral | info | success | warning | danger |
| footer | slot | No | — | kit Buttons, size sm, bottom right. At most one appearance=solid mode=primary. |
| footerStart | slot | No | — | Left of the footer actions: an Ask Button (outline neutral sm, MessageCircle) or a count. Labels are caller-provided. |
| placement | bottom | top | left | right | No | bottom | Preferred side. Lines up with the trigger's start edge, flips when there is no room and stays inside the viewport. |
| open | boolean | No | — | Controlled visibility. |
| defaultOpen | boolean | No | false | — |
| onOpenChange | function | No | — | (open: boolean) => void |
Small help panel: optional title plus one to three short sentences.
Brief supplementary text on hover or focus of a trigger element.
Actions or value menu from a button, field, or nav trigger.
Dismissible overlay for short tasks, forms, or extra detail.