Skip to main content

LinkTooltip

Wraps a link trigger; fetches Open Graph–style preview data through tooltip hooks and renders TooltipContent in a portal.

Props​

PropDefault
urlrequired
enableExtendedPreviewfalse
enableCtrlClickfalse — enables TooltipModal iframe path
cacheDurationpassed to useTooltipCache
isInsideParagraphlayout wrapper
classNameon trigger

Hooks composed​

useTooltipState, useTooltipCache, useTooltipPosition, useTooltipHandlers; respects useSession for authenticated preview endpoints.

When enableCtrlClick, TooltipModal portals a controllable iframe preview with fullscreen and control chrome.


Sources: src/app/components/tooltip/LinkTooltip.tsx, src/app/components/tooltip/TooltipContent.tsx, src/app/hooks/useTooltipCache.ts