Home / File/ hover-card-sides.tsx — ui Source File

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.

File tsx DocumentationAtlas Changelog 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  e05b95d2_0e00_b10d_96ce_ea96b6f29b5f["hover-card-sides.tsx"]
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  e05b95d2_0e00_b10d_96ce_ea96b6f29b5f --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  71a24709_3731_4aec_eba7_4aa22c7f34c9["hover-card"]
  e05b95d2_0e00_b10d_96ce_ea96b6f29b5f --> 71a24709_3731_4aec_eba7_4aa22c7f34c9
  style e05b95d2_0e00_b10d_96ce_ea96b6f29b5f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/base/ui/button"
import {
  HoverCard,
  HoverCardContent,
  HoverCardTrigger,
} from "@/examples/base/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}>
          <HoverCardTrigger
            delay={100}
            closeDelay={100}
            render={<Button variant="outline" className="capitalize" />}
          >
            {side}
          </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>
  )
}

Subdomains

Functions

Dependencies

  • button
  • hover-card

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/base/hover-card-sides.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free