Email row

The list view row, 36 tall: checkbox, star, unread dot, sender (150 wide), subject and preview, tag, time.

Unread, read and selected

Unread rows get the accent/solid dot, with sender and subject in Heading/XS text/primary. Read rows keep the dot’s space so senders line up, in Body/SM text/secondary. Selected is state/selected. Pick and star them: both are instant.

Today
Mara LindqvistNotes from the onboarding reviewThree things to fix before Thursday, none of them largeWork09:41Unread
Design WeeklyTwelve type pairings worth stealingThis week: grotesques that hold up at 13 pixelsNewsletters08:15
Jonas WeberOffsite: flights and hotel optionsTwo hotels near the venue, both under budgetTravel07:58Unread

Hover

state/hover, instant, and only on devices with a real pointer. Resting on a row for 450ms opens its peek card.

Design WeeklyTwelve type pairings worth stealingThis week: grotesques that hold up at 13 pixelsNewsletters08:15

Select all

SelectAllRow tops the list while anything is picked: the mixed checkbox, “4 of 50 selected” and “Select all 48,979”, with even space above and below.

4 of 50 selected

Usage

import { EmailGroup, EmailRow, SelectAllRow } from "@kuori/ui/inbox";
<EmailRow email={email} selected={selected} onSelectedChange={select} onOpen={open} />

EmailRow

PropTypeDescription
emailRequired
EmailSummary
Sender, address, subject, preview, tag, time, unread and starred
selected
boolean
Picked with its checkbox: state/selectedDefault: false
onSelectedChange
(selected: boolean) => void
The checkbox
onStarredChange
(starred: boolean) => void
The star
onOpen
() => void
Clicking the row or pressing Enter on it
...props
HTMLAttributes
Pointer handlers and the rest, for the peek card

SelectAllRow

PropTypeDescription
selectedRequired
number
How many are picked on this page
onPageRequired
number
How many rows are on this page
totalRequired
number
Everything that matches, across pages
labelRequired
string
“4 of 50 selected”
selectAllLabel
string
“Select all 48,979”. Hidden when it all fits on one page
onSelectPageRequired
(select: boolean) => void
The checkbox
onSelectAll
() => void
The Select all link

EmailGroup

PropTypeDescription
labelRequired
string
Today, Yesterday, Earlier this week, Last week, Earlier in {month}