snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
23
apps/v4/examples/radix/hover-card-demo.tsx
Normal file
23
apps/v4/examples/radix/hover-card-demo.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Button } from "@/styles/radix-nova/ui/button"
|
||||
import {
|
||||
HoverCard,
|
||||
HoverCardContent,
|
||||
HoverCardTrigger,
|
||||
} from "@/styles/radix-nova/ui/hover-card"
|
||||
|
||||
export default function HoverCardDemo() {
|
||||
return (
|
||||
<HoverCard openDelay={10} closeDelay={100}>
|
||||
<HoverCardTrigger asChild>
|
||||
<Button variant="link">Hover Here</Button>
|
||||
</HoverCardTrigger>
|
||||
<HoverCardContent className="flex w-64 flex-col gap-0.5">
|
||||
<div className="font-semibold">@nextjs</div>
|
||||
<div>The React Framework – created and maintained by @vercel.</div>
|
||||
<div className="mt-1 text-xs text-muted-foreground">
|
||||
Joined December 2021
|
||||
</div>
|
||||
</HoverCardContent>
|
||||
</HoverCard>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user