tooltip-demo.tsx — ui Source File
Architecture documentation for tooltip-demo.tsx, a tsx file in the ui codebase. 3 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 4cb12531_ce80_1bba_5f8c_cf737991c809["tooltip-demo.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 4cb12531_ce80_1bba_5f8c_cf737991c809 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 57e86e45_ac6e_7278_be08_9092724e8401["button"] 4cb12531_ce80_1bba_5f8c_cf737991c809 --> 57e86e45_ac6e_7278_be08_9092724e8401 a2518e24_160d_3f8f_bb12_2206d8e84ab8["tooltip"] 4cb12531_ce80_1bba_5f8c_cf737991c809 --> a2518e24_160d_3f8f_bb12_2206d8e84ab8 1c2403dc_4584_9f39_4e98_855a7de18bd1["component-registry.ts"] 1c2403dc_4584_9f39_4e98_855a7de18bd1 --> 4cb12531_ce80_1bba_5f8c_cf737991c809 style 4cb12531_ce80_1bba_5f8c_cf737991c809 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { InfoIcon } from "lucide-react"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/registry/new-york-v4/ui/tooltip"
export function TooltipDemo() {
return (
<div className="flex flex-wrap items-start gap-4">
<Tooltip>
<TooltipTrigger asChild>
<Button variant="outline">Hover</Button>
</TooltipTrigger>
<TooltipContent>
<p>Add to library</p>
</TooltipContent>
</Tooltip>
<div className="flex gap-2">
{["top", "right", "bottom", "left"].map((side) => (
<Tooltip key={side}>
<TooltipTrigger asChild>
<Button variant="outline" className="capitalize">
{side}
</Button>
</TooltipTrigger>
<TooltipContent side={side as "top" | "right" | "bottom" | "left"}>
<p>Add to library</p>
</TooltipContent>
</Tooltip>
))}
</div>
<Tooltip>
<TooltipTrigger asChild>
<Button variant="ghost" size="icon">
<InfoIcon />
<span className="sr-only">Info</span>
</Button>
</TooltipTrigger>
<TooltipContent>
To learn more about how this works, check out the docs. If you have
any questions, please reach out to us.
</TooltipContent>
</Tooltip>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- lucide-react
- tooltip
Source
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 DocumentationAtlas domain, SearchAPI 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 3 module(s): button, lucide-react, tooltip.
What files import tooltip-demo.tsx?
tooltip-demo.tsx is imported by 1 file(s): component-registry.ts.
Where is tooltip-demo.tsx in the architecture?
tooltip-demo.tsx is located at apps/v4/app/(internal)/sink/components/tooltip-demo.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/app/(internal)/sink/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free