import { Example, ExampleWrapper, } from "@/registry/bases/base/components/example" import { Button } from "@/registry/bases/base/ui/button" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/registry/bases/base/ui/dialog" import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/registry/bases/base/ui/hover-card" export default function HoverCardExample() { return ( ) } const HOVER_CARD_SIDES = ["top", "right", "bottom", "left"] as const function HoverCardSides() { return ( {HOVER_CARD_SIDES.map((side) => ( } > {side} Hover Card This hover card appears on the {side} side of the trigger. ))} ) } function HoverCardInDialog() { return ( }> Open Dialog Hover Card Example Hover over the button below to see the hover card. } > Hover me Hover Card This hover card appears inside a dialog. Hover over the button to see it. ) }
This hover card appears on the {side} side of the trigger.
This hover card appears inside a dialog. Hover over the button to see it.