hover-card-sides.tsx — ui Source File
Architecture documentation for hover-card-sides.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 8f54c68c_358a_a7fd_84c6_51c473d7babc["hover-card-sides.tsx"] 4b1d2128_46d9_46f0_b915_b6e1925b7876["button"] 8f54c68c_358a_a7fd_84c6_51c473d7babc --> 4b1d2128_46d9_46f0_b915_b6e1925b7876 0973d40b_af81_dfe0_cc96_93d4f8f30252["hover-card"] 8f54c68c_358a_a7fd_84c6_51c473d7babc --> 0973d40b_af81_dfe0_cc96_93d4f8f30252 style 8f54c68c_358a_a7fd_84c6_51c473d7babc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/examples/radix/ui/button"
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from "@/examples/radix/ui/hover-card"
const HOVER_CARD_SIDES = ["left", "top", "bottom", "right"] as const
export function HoverCardSides() {
return (
<div className="flex flex-wrap justify-center gap-2">
{HOVER_CARD_SIDES.map((side) => (
<HoverCard key={side} openDelay={100} closeDelay={100}>
<HoverCardTrigger asChild>
<Button variant="outline" className="capitalize">
{side}
</Button>
</HoverCardTrigger>
<HoverCardContent side={side}>
<div className="flex flex-col gap-1">
<h4 className="font-medium">Hover Card</h4>
<p>This hover card appears on the {side} side of the trigger.</p>
</div>
</HoverCardContent>
</HoverCard>
))}
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- hover-card
Source
Frequently Asked Questions
What does hover-card-sides.tsx do?
hover-card-sides.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in hover-card-sides.tsx?
hover-card-sides.tsx defines 1 function(s): HoverCardSides.
What does hover-card-sides.tsx depend on?
hover-card-sides.tsx imports 2 module(s): button, hover-card.
Where is hover-card-sides.tsx in the architecture?
hover-card-sides.tsx is located at apps/v4/examples/radix/hover-card-sides.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free