Skip to content
GitHub (opens in a new tab)

HelpPopover

Small help panel: optional title plus one to three short sentences.

stableMoleculecontracts/helppopover.json

Preview

HelpPopover

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.

Master

Hover, focus, or click the help control. The panel opens below it.

Invoice date. We use this date on the PDF. It does not change when payment is recorded.

Usage

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.

Do's

  • Extra explanation beside a Field label or a setting
  • Copy that is longer than a Tooltip name but not always-visible hint
  • Which one: Tooltip names a control in a few words; HelpPopover explains it in one to three sentences; Popover holds fields or actions and takes focus. None of them is a menu or a blocking decision.

Don'ts

  • One-line name on an icon — use Tooltip
  • Required instructions — keep them in Field hint (always visible)
  • Links, buttons, or forms — use Modal
  • Always-visible helper under a control — use Field hint
<HelpPopover title="Invoice date" content="We use this date on the PDF. It does not change when payment is recorded." placement="bottom">
  <Button appearance="ghost" mode="neutral" size="sm" iconStart="CircleHelp" ariaLabel="Help" />
</HelpPopover>

When to use

  • Extra explanation beside a Field label or a setting
  • Copy that is longer than a Tooltip name but not always-visible hint
  • Which one: Tooltip names a control in a few words; HelpPopover explains it in one to three sentences; Popover holds fields or actions and takes focus. None of them is a menu or a blocking decision.

When not to use

  • One-line name on an icon — use Tooltip
  • Required instructions — keep them in Field hint (always visible)
  • Links, buttons, or forms — use Modal
  • Always-visible helper under a control — use Field hint

What an agent reads

import { HelpPopover } from "agentic-ds-kit";
must
  • Trigger must be focusable
  • Title and content stay in the DOM as the trigger description (aria-describedby) so AT gets them on focus
  • Hover after delay; focus shows immediately; Enter, Space, click, or tap pins
  • Escape, click outside, or moving focus away closes
  • Escape closes only the newest open overlay (shared Escape stack): not an enclosing Popover, Modal or Drawer
  • Pointer can move onto the panel to read it
  • Portal the panel to document.body so Field overflow never clips it
defaults
  • placement bottom
  • delay 150
  • disabled false
stops if
  • A panel with actions — use Popover; a rich read-only preview — use HoverCard. Do not invent InfoTip or a one-off ?
  • Do not use Tooltip for a sentence or two
  • Do not put help on Input, Textarea, Select, or DatePicker — Field owns it
  • Do not put links, buttons, or forms in the panel
  • Do not add size, Density, or lg
  • Do not use appearance=solid mode=primary on the trigger
  • Do not add an Icon component or Material Symbols — Lucide via Button/lucideName only
  • Do not use raw hex

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.

Props

NameTypeRequiredDefaultNotes
titlestringNo—Header, 14px (label) at heading weight. Omit for body only.
contentstringYes—Plain text. One to three short sentences. No links or markdown.
placementtop | bottom | left | rightNobottomPreferred side. Flips to the other side when there is no room and stays inside the viewport.
delaynumberNo150Hover waits; focus and click show at once.
openbooleanNo—controlled visibility
disabledbooleanNofalseNo panel; child still renders.
childrenslotYes—One focusable trigger. Gets aria-describedby. Typical: kit Button appearance=ghost mode=neutral size=sm iconStart=CircleHelp ariaLabel=Help. Field help composes this.
  • Component
    →

    Tooltip

    Brief supplementary text on hover or focus of a trigger element.

  • Component
    →

    Field

    One labeled control with optional hint and an error or success message.

  • Component
    →

    Modal

    Dismissible overlay for short tasks, forms, or extra detail.