Tooltip
A hover and focus hint that opens immediately, with no provider required.
Loading documentation…
Tooltip opens immediately. A delay is a hedge against tooltips that
should not exist: if the hint is worth showing, it is worth showing when the
pointer arrives, and if it is not, remove it.
No provider is required. Add Tooltip.Provider only when you want a shared
delay across a whole region.
The child becomes the trigger — it needs to accept a ref and spread props, which every heyo-ui component does.
It appears on hover and focus, which means it never appears on a touch screen.
Give an icon-only control an aria-label as well; the tooltip is the
convenience, not the name.
A shared delay for a whole toolbar:
The hint. Keep it to one line where you can.
The trigger. It must accept a ref and spread props.
Preferred placement. It defaults to top.
Alignment against the trigger.
Offsets in pixels.
Open and close delays in milliseconds. Instant by default.
A little pointer aimed at the trigger.
Merged into the popup.
Shared defaults for every tooltip beneath it.