Tooltip
A hover and focus description with Escape dismissal and no interactive bubble content.
Hover or focus a button; Escape dismisses its supplementary description.
Each preview is its own Live page in a frame, because this site is a Vue 3.5 app built on the Pulsar starter kit. An open list or popover stays inside its frame; in your application it opens over the page.
Installation
suprnova live:add tooltipUsage
{% import "suprnova-ui/tooltip/tooltip.html" as tooltip %}
{% call tooltip::tooltip("help-tip", "Additional information") %}<button type="button" aria-describedby="help-tip">Help</button>{% endcall %}Examples
Link description
A tooltip describes a real navigation link without sending a Live request.
Keyboard and accessibility
suprnova.tooltip - the bubble shows with no script (OVL-002). The caller renders the trigger and gives it aria-describedby="<id>"; the bubble is the element with that id, appears on :hover and on :focus-visible inside the wrapper, and never holds interactive content. sn-tooltip (tooltip.js) adds dismissal with Escape where the bubble is shown (OVL-008); with the script absent the wrapper is an unknown element the stylesheet still lays out.
API reference
tooltip
| Parameter | Default | Description |
|---|---|---|
id | Required | The bubble's `id`; the caller's trigger must reference it through `aria-describedby`. |
text | Required | Supplementary text in the bubble; never put interactive content in a tooltip. |
