Tooltip
componentThe generic hover/focus tooltip — a small bubble of content anchored to a trigger.
Install
npx shadcn@latest add @engram/tooltipRegistry item: /r/tooltip.json — the machine-readable definition agents install from.
Example
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children* | ReactNode | — | The trigger element. |
content* | ReactNode | — | Tooltip content (text or rich nodes). |
placement | TooltipPlacement | "top" | — |
className | string | — | Class for the wrapper. |
contentClassName | string | — | Class for the tooltip bubble. |
Own the code: shadcn add copies this component's source into your repo to read and edit directly. Extend without forking — edit the source, use asChild to swap the element, or pass the typed annotations prop for curated data.