BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/hover-card-example

Hover Card

agentmesh/hover-card-example
FreeExample

shadcn/ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/hover-card-example.json

Source

registry/base-vega/examples/hover-card-example.tsxraw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/hover-card-example.json
1import {
2 Example,
3 ExampleWrapper,
4} from "@/registry/base-vega/components/example"
5import { Button } from "@/registry/base-vega/ui/button"
6import {
7 Dialog,
8 DialogContent,
9 DialogDescription,
10 DialogHeader,
11 DialogTitle,
12 DialogTrigger,
13} from "@/registry/base-vega/ui/dialog"
14import {
15 HoverCard,
16 HoverCardContent,
17 HoverCardTrigger,
18} from "@/registry/base-vega/ui/hover-card"
19
20export default function HoverCardExample() {
21 return (
22 <ExampleWrapper>
23 <HoverCardSides />
24 <HoverCardInDialog />
25 </ExampleWrapper>
26 )
27}
28
29const HOVER_CARD_SIDES = [
30 "inline-start",
31 "left",
32 "top",
33 "bottom",
34 "right",
35 "inline-end",
36] as const
37
38function HoverCardSides() {
39 return (
40 <Example title="Sides" containerClassName="col-span-2">
41 <div className="flex flex-wrap items-center justify-center gap-2">
42 {HOVER_CARD_SIDES.map((side) => (
43 <HoverCard key={side}>
44 <HoverCardTrigger
45 delay={100}
46 closeDelay={100}
47 render={<Button variant="outline" className="capitalize" />}
48 >
49 {side.replace("-", " ")}
50 </HoverCardTrigger>
51 <HoverCardContent side={side}>
52 <div className="flex flex-col style-vega:gap-2 style-nova:gap-1.5 style-lyra:gap-1 style-maia:gap-2 style-mira:gap-1 style-luma:gap-2">
53 <h4 className="font-medium">Hover Card</h4>
54 <p>
55 This hover card appears on the {side.replace("-", " ")} side
56 of the trigger.
57 </p>
58 </div>
59 </HoverCardContent>
60 </HoverCard>
61 ))}
62 </div>
63 </Example>
64 )
65}
66
67function HoverCardInDialog() {
68 return (
69 <Example title="In Dialog">
70 <Dialog>
71 <DialogTrigger render={<Button variant="outline" />}>
72 Open Dialog
73 </DialogTrigger>
74 <DialogContent>
75 <DialogHeader>
76 <DialogTitle>Hover Card Example</DialogTitle>
77 <DialogDescription>
78 Hover over the button below to see the hover card.
79 </DialogDescription>
80 </DialogHeader>
81 <HoverCard>
82 <HoverCardTrigger
83 delay={100}
84 closeDelay={100}
85 render={<Button variant="outline" className="w-fit" />}
86 >
87 Hover me
88 </HoverCardTrigger>
89 <HoverCardContent>
90// … truncated

What it pulls in

Other registry items

  • button
  • dialog
  • hover-card
  • example

Files it writes

  • registry/base-vega/examples/hover-card-example.tsx

Facts

Registry
shadcn/ui
Type
registry:example
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
3 days ago

Go to the source

Docs on shadcn/ui ombhanushaliii/agentmesh on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 201 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordion-exampleshadcn/uiExamplesFreeno deps
Alert Dialogalert-dialog-exampleshadcn/uiExamplesFreeno deps
Alertalert-exampleshadcn/uiExamplesFreeno deps
Aspect Ratioaspect-ratio-exampleshadcn/uiExamplesFreeno deps
Avataravatar-exampleshadcn/uiExamplesFreeno deps
Badgebadge-exampleshadcn/uiExamplesFreeno deps
Breadcrumbbreadcrumb-exampleshadcn/uiExamplesFreeno deps
Buttonbutton-exampleshadcn/uiExamplesFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex