HoverCard
Rich preview card that appears on hover over a trigger element, with delay support.
Examples
Basic
Hover over a link to reveal a detail card.
With avatar
User profile card revealed on hover.
AJ
Rich content
Structured data table inside a hover card.
Sides
Hover card appearing from different sides.
Installation
pnpm add @rokle/components @rokle/tokensInstalls with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.
Usage
import { HoverCard } from "@rokle/components";import { HoverCard } from "@rokle/components";
export function Example() {
return <HoverCard />;
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| trigger | ReactNode | - | Element that triggers the card on hover. |
| children | ReactNode | - | Card content. |
| openDelay | number | 200 | Delay in ms before opening. |