Home / Function/ TooltipContent() — ui Function Reference

TooltipContent() — ui Function Reference

Architecture documentation for the TooltipContent() function in tooltip.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  b5c9eb36_5e5f_7dbd_b859_42bf00571c80["TooltipContent()"]
  3a18c3c5_c8b7_94c2_fab0_1c869dfcffd5["tooltip.tsx"]
  b5c9eb36_5e5f_7dbd_b859_42bf00571c80 -->|defined in| 3a18c3c5_c8b7_94c2_fab0_1c869dfcffd5
  style b5c9eb36_5e5f_7dbd_b859_42bf00571c80 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/tooltip.tsx lines 17–29

>(({ className, sideOffset = 4, ...props }, ref) => (
  <TooltipPrimitive.Portal>
    <TooltipPrimitive.Content
      ref={ref}
      sideOffset={sideOffset}
      className={cn(
        "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground 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 origin-[--radix-tooltip-content-transform-origin]",
        className
      )}
      {...props}
    />
  </TooltipPrimitive.Portal>
))

Subdomains

Frequently Asked Questions

What does TooltipContent() do?
TooltipContent() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/tooltip.tsx.
Where is TooltipContent() defined?
TooltipContent() is defined in deprecated/www/registry/new-york/ui/tooltip.tsx at line 17.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free