A control's short description, shown on hover and keyboard focus, wired as its accessible description, following the APG tooltip pattern in each framework.
A short description of a control, shown while the control is hovered or keyboard-focused. It
never takes focus and holds nothing interactive. The primitive wires it itself: the popup is a
tooltip and the trigger's aria-describedby points at it, so what it says is the control's
accessible description (the control still needs its own name). It follows the WAI-ARIA APG
tooltip pattern, and stays open while hovered
(WCAG 1.4.13).
Hover: the pointer entering the Trigger opens it after delay (reason trigger-hover);
leaving before then cancels. A touch tap never opens it.
Hoverable: leaving the Trigger closes it after closeDelay, unless the pointer moves onto
the popup (across the gap): it stays open while hovered, and closes when the pointer leaves both,
or leaves the window (or the iframe the page is in) at once.
Keyboard: keyboard focus on the Trigger opens it at once (trigger-focus, data-instant);
blur closes it. Escape closes it (escape-key), keeps focus on the trigger, and stops there: an
enclosing dialog stays open.
Press: a press on the Trigger closes it (trigger-press); it does not reopen until the
pointer leaves and comes back.
Delay group: within one Provider, one tooltip is open at a time. Moving from an open
tooltip's trigger to another one opens it at once (data-instant), also within timeout ms of
the last close.
Positioning: as the Popover's, from the Trigger, on the top by
default.
Detached triggers: Triggers anywhere in the page show the same Root through a handle,
each with a payload the content reads (detached triggers).
Hovering another trigger of the open tooltip moves it there at once.
Lifecycle: onOpenChange is called before the change (details.cancel() keeps it as it
is, change details), onOpenChangeComplete(open) reports
the end of each transition, the actions close() and unmount() act from code, and the
Portal's keepMounted keeps the Positioner in the page while closed (hidden, data-closed).
Every part also takes what the primitive contract gives:
render (Vue: as and the render slot), a class and a style, a ref, and any attribute, which
it forwards. The names below are React's; Vue binds them the same way (v-model:open,
@open-change), and Angular as inputs and outputs ([(open)], (openChangeDetails)).
every change, with its reason (trigger-hover, trigger-focus, trigger-press, escape-key); called before the change, details.cancel() stops it
onOpenChangeComplete
(open: boolean) => void
once an opening or a closing has finished its transitions (not on the first render, nor for an exit a reopening interrupted)
actionsRef (react)
{ current: OverlayActions | null }
receives close() (reason imperative-action) and unmount() (ends an exit now); Vue exposes them on the Root's template ref, Angular as the root directive's methods