TooltipContent() — ui Function Reference
Architecture documentation for the TooltipContent() function in tooltip.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 1d02b4cb_4fc8_a2fc_c842_c677926147a9["TooltipContent()"] 0a32e93b_a23e_560e_ec13_6be84b0e8472["tooltip.tsx"] 1d02b4cb_4fc8_a2fc_c842_c677926147a9 -->|defined in| 0a32e93b_a23e_560e_ec13_6be84b0e8472 style 1d02b4cb_4fc8_a2fc_c842_c677926147a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/ui/tooltip.tsx lines 33–55
function TooltipContent({
className,
sideOffset = 0,
children,
...props
}: React.ComponentProps<typeof TooltipPrimitive.Content>) {
return (
<TooltipPrimitive.Portal>
<TooltipPrimitive.Content
data-slot="tooltip-content"
sideOffset={sideOffset}
className={cn(
"cn-tooltip-content bg-foreground text-background z-50 w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin)",
className
)}
{...props}
>
{children}
<TooltipPrimitive.Arrow className="cn-tooltip-arrow bg-foreground fill-foreground z-50 translate-y-[calc(-50%_-_2px)]" />
</TooltipPrimitive.Content>
</TooltipPrimitive.Portal>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TooltipContent() do?
TooltipContent() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/tooltip.tsx.
Where is TooltipContent() defined?
TooltipContent() is defined in apps/v4/registry/bases/radix/ui/tooltip.tsx at line 33.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free