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
starredRequiredbooleanFills the star in icon/star
onStarredChange(starred: boolean) => voidCalled when the star is pressed
showBackbooleanShows ← Inbox, for the full-width viewDefault:
truebackLabelstringWhere back goesDefault:
InboxonBack() => voidBack to the list
onArchive() => voidArchive (E)
onDelete() => voidDelete (#)
positionstring“1 of 48,979”
onPrevious() => voidPrevious email (K). Leave it out to disable the button
onNext() => voidNext email (J). Leave it out to disable the button
onReply() => voidReply (R)
onForward() => voidForward (F)
moreReactNodeThe More menu, usually <EmailMoreMenu />
classNamestringAdditional CSS classes