Tool bar

The email toolbar above the reading pane: back to Inbox, archive, delete and star, then “1 of N” with previous and next, then reply, forward and More.

Full view

In the list view the email opens full width, so showBack adds “← Inbox” with a divider after it. Every button has a tooltip with its shortcut. Moving to the next email is instant.

Split view

The list is beside the email, so there is nothing to go back to and the back button hides.

Usage

import { EmailToolbar, EmailMoreMenu } from "@kuori/ui/inbox";
<EmailToolbar starred={starred} onStarredChange={setStarred} position="1 of 48,979" />

EmailToolbar

PropTypeDescription
starredRequired
boolean
Fills the star in icon/star
onStarredChange
(starred: boolean) => void
Called when the star is pressed
showBack
boolean
Shows ← Inbox, for the full-width viewDefault: true
backLabel
string
Where back goesDefault: Inbox
onBack
() => void
Back to the list
onArchive
() => void
Archive (E)
onDelete
() => void
Delete (#)
position
string
“1 of 48,979”
onPrevious
() => void
Previous email (K). Leave it out to disable the button
onNext
() => void
Next email (J). Leave it out to disable the button
onReply
() => void
Reply (R)
onForward
() => void
Forward (F)
more
ReactNode
The More menu, usually <EmailMoreMenu />
className
string
Additional CSS classes