One message in a thread; earlier ones fold to a line.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/email-messagepnpm dlx shadcn@latest add @notchset-pro/email-messageNeeds 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 { EmailMessage } from "@/components/ui/notchset/blocks/email-message";
import { Avatar } from "@/components/ui/notchset/avatar";
export default function EmailMessageDemo() {
const [folded, setFolded] = React.useState(true);
return (
<div className="flex w-full max-w-[640px] flex-col gap-3">
<EmailMessage avatar={<Avatar name="Kevin Ito" size={28} />} from="Kevin Ito" name="Kevin Ito" to="Ana Ruiz" when="Oct 16" collapsed={folded} onToggle={() => setFolded(!folded)}>
{"Thanks for the walkthrough. Could you send the revised order form with the 2-year pricing?"}
</EmailMessage>
<EmailMessage avatar={<Avatar name="Ana Ruiz" size={28} />} from="Ana Ruiz" to="Kevin Ito" joined={["Priya Shah"]} when="09:40" mine>
{"Here it is. I've also looped in Priya for the payment terms. Two changes left on our side: the liability cap and the EU data clause."}
</EmailMessage>
</div>
);
}This example also uses Avatar. This command installs them with it, so the example pastes as it is:
pnpm dlx shadcn@latest add @notchset-pro/email-message @notchset/avatarcomponents/ui/notchset/blocks/email-message.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
avatar–
React.ReactNodeRequired.
from–
React.ReactNodeThe sender's name; pass a button to open them.
to–
stringjoined–
string[]when–
stringRequired.
whenTitle–
stringsending–
booleanunsent–
{ onRestore: () => void }It never left (the page closed in its Undo window): says so, with the way to send it again.
mine–
booleanfresh–
booleancollapsed–
booleanFolded to one line; needs `name` and `onToggle`.
onToggle–
() => voidname–
stringThe sender as text, for the folded line and its label.
Give 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.