Skip to content

Infotip

A small disclosure for supplementary plain-text help.

Supporting primitive

Use fd-infotip for short supporting explanations that should be available on demand without becoming required instructions. It is the shared InfoTip primitive used by Label and prose footnote previews.

When to use

  • Supplementary definitions — terms, acronyms, or policy references that help some readers but are not required to complete the task.
  • "Why we ask" explanations — brief context that supports trust without crowding the label or paragraph.
  • Inline reference previews — footnotes can use the inline variant to preview citation text while preserving the link to the full note.

When not to use

  • Don't hide required instructions — if everyone needs the information, make it visible as hint text or body copy.
  • Don't put interactive content inside an InfoTip — links, buttons, forms, and rich content need a dialog or another explicit pattern.
  • Don't use it as an error message — use Message for validation feedback.

Examples

InfoTip icon button with a plain-text panel View in Storybook →
Inline InfoTip used as a footnote reference preview View in Storybook →

Properties

NameTypeDefaultDescription
textstring``Plain-text supplementary help shown in the InfoTip panel
labelstringMore informationAccessible name for the trigger
triggerstring``Visible trigger text. Icon variant falls back to the information icon when empty.
hrefstring | undefinedundefinedOptional link target. When present, the trigger renders as an anchor instead of a button.
variant"icon" | "inline"iconVisual trigger variant. Use inline for text references such as footnotes.
mode"click" | "hover-focus"clickOpening behavior. Use click for icon toggletips and hover-focus for inline references that keep their primary click action.
openbooleanfalseReflects whether the InfoTip panel is currently open

Shadow parts

NameDescription
triggerButton or anchor that opens the InfoTip
infotip-triggerCompatibility alias for the trigger part

Accessibility

  • The default trigger is a real <button> with aria-expanded, aria-controls, and aria-describedby.
  • Inline references render as real links when href is provided. They keep their primary navigation action while opening the InfoTip on hover or keyboard focus.
  • The panel uses role="tooltip" and is referenced by aria-describedby so assistive technology has a programmatic relationship to the trigger.
  • Escape dismisses the panel and returns focus to the trigger.
  • Hover/focus panels remain hoverable and persistent while the pointer or focus remains on the trigger or panel.
  • The default icon trigger is 36px by 36px. Inline references use the WCAG 2.2 inline-target exception but still provide a 24px visual focus/hover affordance.
  • The panel is clamped to the viewport on the inline axis and flips above or below the trigger when needed.

Known limitations

  • InfoTip content is plain text only in v1.
  • The inline variant is intended for short reference previews. Use the full footnote or body content for essential information.
  • The component uses the Popover API when available and a narrow fallback path for test and older runtime surfaces.
  • Label — uses fd-infotip for supplementary field help.
  • Footnotes — uses the inline variant for citation previews.
  • Message — use for field helper, warning, success, or error text.