HoverCardSides() — ui Function Reference
Architecture documentation for the HoverCardSides() function in hover-card-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 346c9cfb_de43_a52b_204e_867d2a8b3ea1["HoverCardSides()"] d884b3df_97c2_1c2a_bb55_0448a1ae3f68["hover-card-example.tsx"] 346c9cfb_de43_a52b_204e_867d2a8b3ea1 -->|defined in| d884b3df_97c2_1c2a_bb55_0448a1ae3f68 style 346c9cfb_de43_a52b_204e_867d2a8b3ea1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/hover-card-example.tsx lines 31–55
function HoverCardSides() {
return (
<Example title="Sides">
<div className="flex flex-wrap items-center justify-center gap-4">
{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} className="w-64">
<div className="style-lyra:gap-1 style-nova:gap-1.5 style-vega:gap-2 style-maia:gap-2 style-mira:gap-1 flex flex-col">
<h4 className="font-medium">Hover Card</h4>
<p>
This hover card appears on the {side} side of the trigger.
</p>
</div>
</HoverCardContent>
</HoverCard>
))}
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does HoverCardSides() do?
HoverCardSides() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/hover-card-example.tsx.
Where is HoverCardSides() defined?
HoverCardSides() is defined in apps/v4/registry/bases/radix/examples/hover-card-example.tsx at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free