Component docs
Loading
"use client";
import { HoverCard } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
content (required) | ReactNode | — | — |
closeDelay | number | — | — |
container | Element | DocumentFragment | null | — | — |
defaultOpen | boolean | — | Initial open state when uncontrolled. |
onOpenChange | (open: boolean) => void | — | Called with the next open state. |
open | boolean | — | Open state (controlled). |
openDelay | number | — | — |
placement | FloatingPlacement | — | Where it sits relative to its anchor (start/end follow the writing direction). |
contentrequiredReactNode
closeDelaynumber
containerElement | DocumentFragment | null
defaultOpenboolean
Initial open state when uncontrolled.
onOpenChange(open: boolean) => void
Called with the next open state.
openboolean
Open state (controlled).
openDelaynumber
placementFloatingPlacement
Where it sits relative to its anchor (start/end follow the writing direction).
Other props are passed to the root element (HTMLAttributes<HTMLSpanElement>), including className, style, id and aria-* attributes.
<HoverCard content="Details">...</HoverCard>