A full mail app screen with folders, search, unread filter, bulk selection, a reading pane with attachments and inline reply, star, archive and delete with undo, and J/K keyboard navigation.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { InboxSplitScreen } from "@/components/hyperblur-pro/inbox-split-screen"
<InboxSplitScreen account="Riley Chen" onArchive={(ids) => console.log(ids)} />| Prop | Type | Default | Description |
|---|---|---|---|
| accent | string | "#7c5cff" | Accent color for the compose button, selection, unread dots and focus rings. |
| account | string | "Riley Chen" | Name of the signed-in user, shown in the sidebar and on sent replies. |
| messages | InboxMessage[] | 10 sample messages | Messages with id, from, email, subject, body, time, folder (inbox, sent, archive, trash) and optional unread, starred, labels and attachments. |
| defaultFolder | "inbox" | "starred" | "sent" | "archive" | "trash" | "inbox" | Folder shown first. |
| defaultOpenId | string | Id of the message open in the reading pane on first render. | |
| onArchive | (ids: string[]) => void | Called with the ids of messages that were archived. | |
| onStar | (id: string, starred: boolean) => void | Called when a message is starred or unstarred. | |
| onOpen | (message: InboxMessage) => void | Called when a message is opened in the reading pane. | |
| onReply | (id: string, text: string) => void | Called when a reply is sent from the inline composer. |
Source code is included in Pro and above