The emails an app sends, as the reader will see them.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/email-previewpnpm dlx shadcn@latest add @notchset-pro/email-previewNeeds your registry key. Every components.json style gets the same files.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { MessageSquare } from "lucide-react";
import { EmailPreview } from "@/components/ui/notchset/blocks/email-preview";
export default function EmailPreviewDemo() {
const [mail, setMail] = React.useState("receipt");
return (
<EmailPreview
value={mail}
onValueChange={setMail}
from={{ name: "Notchset billing", email: "billing@notchset.com", logo: <MessageSquare className="size-3.5" /> }}
to="ana@notchset.com"
foot="Notchset B.V. · Wilhelminakade 91, Rotterdam"
mails={[
{ key: "receipt", name: "Receipt", subject: "Your receipt for Oct 1", body: "We charged $384.00 to your card ending 4242 for Growth, 8 seats.", facts: [["Invoice", "INV-2026-010"], ["Paid", "Oct 1"], ["Amount", "$384.00"]], cta: "View invoice" },
{ key: "failed", name: "Payment failed", subject: "Your payment didn’t go through", body: "Your bank declined $384.00 on your card ending 4242. We’ll try again in 3 days. Nothing is deleted.", facts: [["Amount", "$384.00"], ["Read-only from", "Oct 15"]], cta: "Update card" },
{ key: "trial", name: "Trial ending", subject: "Your trial ends in 3 days", body: "Add a card to keep Growth. If you don’t, the workspace moves to Starter on Oct 26 and nothing is deleted.", facts: [["Trial ends", "Oct 26"], ["Then", "$48 a seat a month"]], cta: "Add a card" },
]}
/>
);
}This example also uses lucide-react. Add it to your project too.
components/ui/notchset/blocks/email-preview.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
mails–
PreviewMail[]Required.
value–
stringRequired.
onValueChange–
(key: string) => voidRequired.
from–
{ name: string; email: string; logo?: React.ReactNode }Required.
to–
stringRequired.
foot–
React.ReactNodeGive your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.
Inbox and email. Threads, messages, replies and the activity around a record, in one place.
2 free · 5 ProSee the Inbox and email kit
Pro is in early access.