Home / File/ tooltip-demo.tsx — ui Source File

tooltip-demo.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  c3248801_a815_1ff7_39eb_d6ab129592bb["tooltip-demo.tsx"]
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  c3248801_a815_1ff7_39eb_d6ab129592bb --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  4ad968a1_2bd7_248c_f5ed_f80d5b5f7417["tooltip"]
  c3248801_a815_1ff7_39eb_d6ab129592bb --> 4ad968a1_2bd7_248c_f5ed_f80d5b5f7417
  style c3248801_a815_1ff7_39eb_d6ab129592bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/registry/new-york/ui/button"
import {
  Tooltip,
  TooltipContent,
  TooltipProvider,
  TooltipTrigger,
} from "@/registry/new-york/ui/tooltip"

export default function TooltipDemo() {
  return (
    <TooltipProvider>
      <Tooltip>
        <TooltipTrigger asChild>
          <Button variant="outline">Hover</Button>
        </TooltipTrigger>
        <TooltipContent>
          <p>Add to library</p>
        </TooltipContent>
      </Tooltip>
    </TooltipProvider>
  )
}

Subdomains

Functions

Dependencies

  • button
  • tooltip

Frequently Asked Questions

What does tooltip-demo.tsx do?
tooltip-demo.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-demo.tsx?
tooltip-demo.tsx defines 1 function(s): TooltipDemo.
What does tooltip-demo.tsx depend on?
tooltip-demo.tsx imports 2 module(s): button, tooltip.
Where is tooltip-demo.tsx in the architecture?
tooltip-demo.tsx is located at deprecated/www/registry/new-york/examples/tooltip-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/examples).

Analyze Your Own Codebase

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

Try Supermodel Free