Peek Card

An origin-anchored contextual preview popover that emerges directly from target triggers on hover or tap with smart collision edge detection and rich metadata summaries.

Hover over: Payment #3948

Contextual preview card emerging smoothly from trigger element

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/peek-card

API Reference

PropTypeDefaultDescription
childrenReactNodeundefinedTrigger target element wrapped by peek card
dataPeekCardData[...]Structured preview dataset
delaynumber200Hover activation delay in milliseconds
placement'top' | 'bottom' | 'auto''auto'Preferred emergence direction
isLoadingbooleanfalseRenders skeleton placeholder during async lookup