HoverCard
Rich hover popover
A preview shown while pointing at (or focusing) a link — a profile, a page summary. It is extra: touch screens can't hover, so nothing in it may be the only way to reach something.
Basic
Follow @saenai_heroine for updates.
冴えない彼女の育てかた
TVアニメ公式 · joined 2014
Not inside <p>
The floating panel is a <div>. HTML closes a <p> when it meets a <div>, so a trigger placed inside a paragraph renders differently on the server and the client. Wrap with <span>/<div> instead.
- It opens after
openDelayon hover or keyboard focus and closes aftercloseDelay, 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
| Name | Type | Default | Description |
|---|---|---|---|
placement | Placement | "bottom" | |
openDelay | number | 400 | |
closeDelay | number | 200 | |
open | boolean | false |
Events
| Name | Payload | Description |
|---|---|---|
update:open | [value: boolean] |
Slots
| Name | Scope | Description |
|---|---|---|
trigger | — | |
default | — |