AsterUIDocsv1.0.2

Docs / Component reference

HoverCard

Let someone inspect more detail without following a link. Focus or hover over the trigger to open the preview.

Hover card example

Install

sh
npx @fierst/ui@1.0.2 add hover-card

Registry dependencies: theme.

Exports from ./ui/hover-card: HoverCard.

Download the registry source for hover-card 1.0.2.

API contracts

ts
export function* HoverCard(
  props: {
    label?: string;
    trigger: View;
    side?: 'bottom' | 'top';
    align?: 'start' | 'end';
    openDelay?: number;
    closeDelay?: number;
    class?: string;
    children?: View;
  },
  ctx: Ctx,
)