Home / File/ tooltip.tsx — ui Source File

tooltip.tsx — ui Source File

Architecture documentation for tooltip.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  3a18c3c5_c8b7_94c2_fab0_1c869dfcffd5["tooltip.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  3a18c3c5_c8b7_94c2_fab0_1c869dfcffd5 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  606fa977_1f06_db7b_fa21_365948452bf0["react-tooltip"]
  3a18c3c5_c8b7_94c2_fab0_1c869dfcffd5 --> 606fa977_1f06_db7b_fa21_365948452bf0
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  3a18c3c5_c8b7_94c2_fab0_1c869dfcffd5 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  style 3a18c3c5_c8b7_94c2_fab0_1c869dfcffd5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import * as TooltipPrimitive from "@radix-ui/react-tooltip"

import { cn } from "@/lib/utils"

const TooltipProvider = TooltipPrimitive.Provider

const Tooltip = TooltipPrimitive.Root

const TooltipTrigger = TooltipPrimitive.Trigger

const TooltipContent = React.forwardRef<
  React.ElementRef<typeof TooltipPrimitive.Content>,
  React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
>(({ 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>
))
TooltipContent.displayName = TooltipPrimitive.Content.displayName

export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }

Subdomains

Functions

Dependencies

  • react
  • react-tooltip
  • utils

Frequently Asked Questions

What does tooltip.tsx do?
tooltip.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in tooltip.tsx?
tooltip.tsx defines 1 function(s): TooltipContent.
What does tooltip.tsx depend on?
tooltip.tsx imports 3 module(s): react, react-tooltip, utils.
Where is tooltip.tsx in the architecture?
tooltip.tsx is located at deprecated/www/registry/new-york/ui/tooltip.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/ui).

Analyze Your Own Codebase

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

Try Supermodel Free