Log what happened on a record without leaving it.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/activity-composerpnpm dlx shadcn@latest add @notchset-pro/activity-composerNeeds 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 { Mail, Phone, StickyNote } from "lucide-react";
import { ActivityComposer } from "@/components/ui/notchset/blocks/activity-composer";
import { SegmentedControl } from "@/components/ui/notchset/segmented-control";
type Kind = "note" | "call" | "email";
const KINDS = [
{ value: "note" as const, label: "Note", icon: <StickyNote />, placeholder: "Write a note about Airtable…" },
{ value: "call" as const, label: "Call", icon: <Phone />, placeholder: "What was said on the call?" },
{ value: "email" as const, label: "Email", icon: <Mail />, placeholder: "Log an email you sent elsewhere" },
];
export default function ActivityComposerDemo() {
const [kind, setKind] = React.useState<Kind>("note");
const [outcome, setOutcome] = React.useState<"connected" | "voicemail" | "noanswer">("connected");
const [logged, setLogged] = React.useState<string[]>([]);
return (
<div className="flex w-full max-w-[640px] flex-col gap-3">
<ActivityComposer
kinds={KINDS}
kind={kind}
onKindChange={setKind}
audience="Visible to the Airtable deal team"
extra={
kind === "call" ? (
<SegmentedControl
label="How the call went"
size="sm"
value={outcome}
onValueChange={setOutcome}
options={[
{ value: "connected", label: "Connected" },
{ value: "voicemail", label: "Voicemail" },
{ value: "noanswer", label: "No answer" },
]}
/>
) : undefined
}
onPost={(k, text) => setLogged((l) => [`${k}: ${text}`, ...l])}
/>
{logged.map((l) => (
<span key={l} className="text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">
Logged {l}
</span>
))}
</div>
);
}This example also uses Segmented control, lucide-react. This command installs them with it, so the example pastes as it is:
pnpm dlx shadcn@latest add @notchset-pro/activity-composer @notchset/segmented-controlcomponents/ui/notchset/blocks/activity-composer.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
kinds–
Kind<K>[]Required.
kind–
KRequired.
onKindChange–
(kind: K) => voidRequired.
onPost–
(kind: K, text: string) => boolean | voidReturn false to keep the text (the save was refused).
audience–
stringWho will see it ("Visible to the Notchset team").
inputRef–
React.Ref<HTMLTextAreaElement>Lets the page put the cursor here ("Log a touch" on a banner).
extra–
React.ReactNodeA control for the kind picked, shown while the composer is open, after the kinds (how a call went).
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.