- Components
- Overlays
Tooltip
Foreground pill that fades and moves 6px over 160ms.
Installation#
npx shadcn add @ortaui/tooltipExamples#
Sides#
Open#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| open / defaultOpen | boolean | - | Controlled or uncontrolled state. |
| onOpenChange | (open: boolean) => void | - | Called when the open state changes. |
| side / align | "top" | "right" | "bottom" | "left" / "start" | "center" | "end" | - | Placement relative to the trigger. |
| sideOffset | number | 8 | Gap to the trigger in px. |
| TooltipProvider | delay, closeDelay | - | Groups tooltips so the second opens instantly. |
| className | string | - | Merged with the component classes via cn(). |