169
A mail client in one block: unread dots, coloured labels, hover actions, rows you swipe to archive or mark read (with undo), j/k/e shortcuts and a reading pane that slides over the list on phones.
akaemail·inbox·mail client
Run this in any project set up for the shadcn CLI. It copies the Inbox Preview source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/inbox-preview.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { InboxPreview } from "@/components/inbox-preview";
export default function Page() {
return <InboxPreview />;
}A free React block in the Apps collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Inbox Preview source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| emailsrequired | InboxEmail[] | — |
| me | string | "you" |
| onArchive | (email: InboxEmail) => void | — |
| onReply | (email: InboxEmail, text: string) => void | — |
| onSnooze | (email: InboxEmail) => void | — |
| className | string | — |