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
  f478e4e2_7586_3cf3_b089_56605f158ec1["tooltip.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  f478e4e2_7586_3cf3_b089_56605f158ec1 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  606fa977_1f06_db7b_fa21_365948452bf0["react-tooltip"]
  f478e4e2_7586_3cf3_b089_56605f158ec1 --> 606fa977_1f06_db7b_fa21_365948452bf0
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  f478e4e2_7586_3cf3_b089_56605f158ec1 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  style f478e4e2_7586_3cf3_b089_56605f158ec1 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.Content
    ref={ref}
    sideOffset={sideOffset}
    className={cn(
      "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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}
  />
))
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/default/ui/tooltip.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/ui).

Analyze Your Own Codebase

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

Try Supermodel Free