Seed Bible extension API (v1.19.0) / seed-bible/components / TooltipTrigger
Function: TooltipTrigger()
function TooltipTrigger(
__namedParameters: TooltipTriggerProps,
): VNode<Record<string, unknown>>;Wraps a single element so hovering it, focusing it with the keyboard or holding a finger on it shows a tooltip. It adds nothing to the page around the element: the element gets the handlers, and the tooltip draws over everything else.
The tooltip is drawn through a portal placed among the element's children, so the element needs to be able to have children (a <button>, not an <img>).
For an element that is only an icon. An element with visible text already says what it is. IconButton already does this, so wrap only what isn't one.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | TooltipTriggerProps |
Returns
VNode<Record<string, unknown>>