Tooltip
primitiveHover/focus-triggered hint. Four sides, configurable delay, keyboard-accessible.
Installation
$pnpm dlx disenio add tooltipUsage
example.tsx
import { Tooltip } from "@/components/ui/tooltip";Sides
API
| Prop | Type | Default | Description |
|---|---|---|---|
| content | ReactNode | — | What to show inside the tooltip. |
| children | ReactElement | — | The trigger element. Pointer/focus events get cloned onto it. |
| side | "top" | "right" | "bottom" | "left" | "top" | Position relative to the trigger. |
| delay | number (ms) | 200 | Hover delay before showing. |