Hover Card

File UploadInput

A rich preview card shown when hovering a link.

Built by @sara

Installation

pnpm add krz-ui

Usage

import { HoverCard } from "krz-ui";
<HoverCard content={<ProfileCard user={user} />}>
  <a href="/sara">@sara</a>
</HoverCard>

API Reference

PropTypeDescription
childrenReactNodeThe element that shows the card on hover or focus.
contentReactNodeThe card content.
openDelay / closeDelaynumberDelays in ms. Default 400 / 200.
side / alignPopoverSide / PopoverAlignPlacement relative to the trigger.
className / style / ref—All go to the wrapper around the trigger. Style the floating part with classNames.content. See Customization.
classNames{ content? }Extra classes for inner parts.