"use client" import { Example, ExampleWrapper, } from "@/registry/bases/aria/components/example" import { Button } from "@/registry/bases/aria/ui/button" import { Dialog, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/registry/bases/aria/ui/dialog" import { HoverCard, HoverCardTrigger, } from "@/registry/bases/aria/ui/hover-card" export default function HoverCardExample() { return ( ) } const HOVER_CARD_PLACEMENTS = [ "start", "left", "top", "bottom", "right", "end", ] as const function HoverCardSides() { return (
{HOVER_CARD_PLACEMENTS.map((placement) => (

Hover Card

This hover card appears on the {placement} side of the trigger.

))}
) } function HoverCardInDialog() { return ( Hover Card Example Hover over the button below to see the hover card.

Hover Card

This hover card appears inside a dialog. Hover over the button to see it.

) }