Engram

Tooltip

component

The generic hover/focus tooltip — a small bubble of content anchored to a trigger.

Install

npx shadcn@latest add @engram/tooltip

Registry item: /r/tooltip.json — the machine-readable definition agents install from.

Example

Props

PropTypeDefaultDescription
children*ReactNodeThe trigger element.
content*ReactNodeTooltip content (text or rich nodes).
placementTooltipPlacement"top"
classNamestringClass for the wrapper.
contentClassNamestringClass 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.