Skip to content
Calm motion: animations on this site only fade, with no movement

HoverCard ​

Rich hover popover

A preview shown while the pointer is on (or focus is in) a link: a profile, a page summary. It is extra. Touch screens cannot hover, so nothing in it can be the only way to reach something.

Basic
Follow @saenai_heroine for updates.

Not inside <p>

The floating panel is a <div>. HTML closes a <p> at a <div>. For this reason, a trigger placed inside a paragraph renders differently on the server and the client. Wrap it in a <span> or <div> instead.

  • It opens after openDelay on hover or keyboard focus and closes after closeDelay, so the pointer can move into it.
  • For content that must be reachable on every device, use a Popover opened by a click.

Usage ​

ts
import { BlessHoverCard } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
placementPlacement"bottom"
openDelaynumber400
closeDelaynumber200
openbooleanfalse

Events

NamePayloadDescription
update:open[value: boolean]

Slots

NameScopeDescription
trigger—
default—

Released under the MIT License. Character names and artwork belong to their owners.