Peek card

A hover preview for a list row: sender, address, time, subject, preview and tag, 420 wide on bg/overlay with Shadow/LG.

Behaviour

The list opens it after the pointer rests on a row for 450ms, under the row at the subject column. It drops in from the row over 125ms. While one is open, neighbouring rows swap it instantly with instant, and it never takes the pointer. Touch and pen never peek.

Usage

import { PeekCard, ROW_SUBJECT_OFFSET } from "@kuori/ui/inbox";
<PeekCard email={email} instant={alreadyOpen} style={{ top, left }} />

PeekCard

PropTypeDescription
emailRequired
EmailSummary
Sender, address, subject, preview, tag, time, unread and starred
instant
boolean
Skip the entrance, for neighbouring rowsDefault: false
style
CSSProperties
Its top and left inside the list. ROW_SUBJECT_OFFSET is the subject column
className
string
Additional CSS classes