mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-02 10:35:35 +00:00
Upstream sync from shadcn-ui/ui (1686 commits since last merge base). Key changes: - packages/shadcn upgraded to 4.1.0 (CLI font transformers, scaffold from github, chart colors) - apps/v4 replaces apps/www as the primary docs/registry app - Font system: 25+ heading font registries, font markers utility, @supports override - Chart improvements: recharts v3 compat, radial chart fixes - templates/ updated with monorepo variants (astro, vite, react-router, start) - skills/shadcn AI skill definitions added - deprecated/ removed (auth, auth-firebase, cli, www) Preserved Hanzo-only paths: app/, pkg/, demo/, docs/, template/next/
24 lines
717 B
TypeScript
24 lines
717 B
TypeScript
import { Button } from "@/examples/radix/ui/button"
|
||
import {
|
||
HoverCard,
|
||
HoverCardContent,
|
||
HoverCardTrigger,
|
||
} from "@/examples/radix/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>
|
||
)
|
||
}
|