TooltipContent() — ui Function Reference
Architecture documentation for the TooltipContent() function in tooltip.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 3bab04a3_b5cf_b2a0_b2b6_e328a962e75d["TooltipContent()"] e31f7c00_4aea_9877_aecf_eecc1122b6d4["tooltip.tsx"] 3bab04a3_b5cf_b2a0_b2b6_e328a962e75d -->|defined in| e31f7c00_4aea_9877_aecf_eecc1122b6d4 style 3bab04a3_b5cf_b2a0_b2b6_e328a962e75d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/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(
"bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
className
)}
{...props}
>
{children}
<TooltipPrimitive.Arrow className="bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[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/new-york-v4/ui/tooltip.tsx.
Where is TooltipContent() defined?
TooltipContent() is defined in apps/v4/registry/new-york-v4/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