Tooltip

Hover / focus tip.

import { Tooltip, Button } from "@/rl-ui";

<Tooltip content="Helpful tip">
<Button variant="secondary">Hover me</Button>
</Tooltip>

Examples

Sides

import { Tooltip, Button } from "@/rl-ui";

<>
<Tooltip content="Top" side="top"><Button>Top</Button></Tooltip>
<Tooltip content="Right" side="right"><Button>Right</Button></Tooltip>
<Tooltip content="Bottom" side="bottom"><Button>Bottom</Button></Tooltip>
<Tooltip content="Left" side="left"><Button>Left</Button></Tooltip>
</>

API

PropTypeDefaultDescription
contentReactNode—Tooltip body (required).
side"top" | "right" | "bottom" | "left""top"Preferred placement.
align"start" | "center" | "end""center"Alignment along the side.
delayDurationnumber200Open delay in ms.
hideArrowbooleanfalseHide the arrow.