# Tooltip

A hint on hover and focus. Never the only place for information.

Import from `@a31labs/rax/tooltip`.

## Usage

```tsx
<Tooltip content="Copy the deploy ID"><IconButton label="Copy" icon={<Copy aria-hidden />} /></Tooltip>
```

## Rules

Popover: `trigger`, children, `side`, controlled or default open. Menu: `trigger`, `items` (`{ label, onSelect, danger, icon, description, current }`); with an icon or description an item becomes a richer row (a 32px icon tile, the label in 600 and the description in ink-2 under it), for app or area switchers, and `current` adds a check. Tooltip: `content`, one child. All three take `container`, and `className` and `ref` for the floating popup. Tooltips never hold information that is not available elsewhere.

Page: https://rax.a31.at/components/tooltip
