Home / Function/ HoverCardInDialog() — ui Function Reference

HoverCardInDialog() — ui Function Reference

Architecture documentation for the HoverCardInDialog() function in hover-card-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  3b214e54_eabc_8b69_215d_5bd506acc2c3["HoverCardInDialog()"]
  d884b3df_97c2_1c2a_bb55_0448a1ae3f68["hover-card-example.tsx"]
  3b214e54_eabc_8b69_215d_5bd506acc2c3 -->|defined in| d884b3df_97c2_1c2a_bb55_0448a1ae3f68
  style 3b214e54_eabc_8b69_215d_5bd506acc2c3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/examples/hover-card-example.tsx lines 57–91

function HoverCardInDialog() {
  return (
    <Example title="In Dialog">
      <Dialog>
        <DialogTrigger asChild>
          <Button variant="outline">Open Dialog</Button>
        </DialogTrigger>
        <DialogContent>
          <DialogHeader>
            <DialogTitle>Hover Card Example</DialogTitle>
            <DialogDescription>
              Hover over the button below to see the hover card.
            </DialogDescription>
          </DialogHeader>
          <HoverCard openDelay={100} closeDelay={100}>
            <HoverCardTrigger asChild>
              <Button variant="outline" className="w-fit">
                Hover me
              </Button>
            </HoverCardTrigger>
            <HoverCardContent 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 inside a dialog. Hover over the button
                  to see it.
                </p>
              </div>
            </HoverCardContent>
          </HoverCard>
        </DialogContent>
      </Dialog>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does HoverCardInDialog() do?
HoverCardInDialog() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/hover-card-example.tsx.
Where is HoverCardInDialog() defined?
HoverCardInDialog() is defined in apps/v4/registry/bases/radix/examples/hover-card-example.tsx at line 57.

Analyze Your Own Codebase

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

Try Supermodel Free