Email card

The split view card, three lines: sender and time, subject, preview with the tag. The list sits straight on the window, 392 wide, with no panel behind it.

States

The open email is state/selected (current), and so is anything picked with its checkbox. A starred email shows the gold star before the time. Click a card to open it.

Today
Mara Lindqvist09:41Notes from the onboarding reviewThree things to fix before Thursday, none of them largeWork
Design Weekly08:15Twelve type pairings worth stealingThis week: grotesques that hold up at 13 pixelsNewsletters
Jonas Weber07:58Offsite: flights and hotel optionsTwo hotels near the venue, both under budgetTravel

Usage

import { EmailCard } from "@kuori/ui/inbox";
<EmailCard email={email} current={email.id === openId} onOpen={open} />

EmailCard

PropTypeDescription
emailRequired
EmailSummary
Sender, address, subject, preview, tag, time, unread and starred
current
boolean
The email in the reading paneDefault: false
selected
boolean
Picked with its checkboxDefault: false
onSelectedChange
(selected: boolean) => void
The checkbox
onOpen
() => void
Clicking the card or pressing Enter on it