[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / Tooltip

# Function: Tooltip()

> **Tooltip**(`props`): [`HtmlNode`](../type-aliases/HtmlNode)

Defined in: [flow/src/components.ts:1116](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/components.ts#L1116)

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`](../interfaces/TooltipProps)

## Returns

[`HtmlNode`](../type-aliases/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

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