Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow / index / Tooltip

Function: Tooltip()

Tooltip(props): HtmlNode

Defined in: flow/src/components.ts:1116

Shows a small tip on hover/focus of its children, with aria-describedby wired to the tooltip. Client-only (Alpine), positioned with CSS relative to the trigger.

Parameters

props

TooltipProps

Returns

HtmlNode

Remarks

Supply the tip via content (or its alias text); placement is "top" (default) or "bottom". The trigger is whatever you pass as children.

Example

<Tooltip content="Copy to clipboard"><button>📋</button></Tooltip>