Tooltips
Use tooltips for short inline definitions that should not interrupt the reader's path.
Tooltips are for tiny explanations. If the note needs a paragraph, use a callout, panel, or glossary page instead.
Basic example
Example: API documentation helps developers understand how to integrate with your service.
<Tooltip headline="API" tip="Application Programming Interface: a set of protocols for software applications to communicate." cta="Read our API guide" href="/docs/api/reference">API</Tooltip> documentation helps developers understand how to integrate with your service.
An offer is the core object behind checkout.
An <Tooltip tip="A published sale configuration that can include products, checkout layout, pricing, and completion behavior." headline="Offer">offer</Tooltip> is the core object behind checkout.
With a link
Use a linked tooltip when a short definition is useful inline, but the reader may need a full page next.
An offer timer can help create urgency without changing the checkout object.
An <Tooltip
headline="Timer"
tip="A deadline-aware buying surface that can point traffic toward an offer."
cta="Read Timer docs"
href="/docs/timers/overview"
>
offer timer
</Tooltip> can help create urgency.
Placement
Use side="bottom" inside dense headings, tables, or short panels where the top edge would clip the tooltip.
<Tooltip
headline="SDK"
tip="The JavaScript package that presents offers and listens for checkout events."
side="bottom"
>
SDK
</Tooltip>
Authoring rules
Tooltip usage
Keep it shortone or two sentencesTooltips should clarify a word or phrase without becoming required reading.
Do not hide warningsvisible constraintsIf skipping the information can break implementation, use a callout or step instead.
Link real conceptshref + ctaUse href and cta for terms such as offers, timers, SDKs, and webhooks when the site has a deeper page.
Properties
tipstringrequiredText displayed in the tooltip.
headlinestringText displayed before the tip text.
ctastringCall-to-action text for the link inside the tooltip.
hrefstringURL for the call-to-action link. Required when using cta.
Plandalf extensions
sidetop | bottomdefault: topPreferred placement.
idstringStable tooltip ID for accessibility when deterministic IDs matter.
class | classNamestringOptional utility classes for local spacing or text changes.