/** * SvHoverCard - a rich preview card that opens when the pointer rests on its * anchor (a user chip, a link) and closes shortly after it leaves. Built on the * shared positioning engine via SvPopover, so it takes any `placement`, flips * and shifts to stay in view, and the card itself is hoverable (you can move the * pointer onto it). For keyboard/touch users, prefer SvPopover with a click * trigger - a hover card is a pointer affordance. * * ```svelte * * {#snippet anchor()}@ada{/snippet} * Ada Lovelace *

Analyst, first programmer.

*
* ``` */ import type { Snippet } from 'svelte'; import type { Placement } from './positioning'; type Props = { /** Controlled open state (bindable). */ open?: boolean; onOpenChange?: (open: boolean) => void; /** Preferred placement; flips when there is no room. Default `bottom-start`. */ placement?: Placement; /** Delay (ms) before the card opens on hover. Default 250. */ openDelay?: number; /** Delay (ms) before it closes after the pointer leaves. Default 180. */ closeDelay?: number; /** Show a pointer arrow. Default false (cards usually read cleaner without). */ arrow?: boolean; /** Force a minimum card width. */ minWidth?: number; ariaLabel?: string; /** The element the card previews. */ anchor?: Snippet; /** Card content. */ children?: Snippet; }; declare const SvHoverCard: import("svelte").Component; type SvHoverCard = ReturnType; export default SvHoverCard;