A reading or an event, one question at a time, ending on its receipt.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/log-sheetpnpm dlx shadcn@latest add @notchset-pro/log-sheetNeeds 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 { LogSheet } from "@/components/ui/notchset/blocks/log-sheet";
import { Button } from "@/components/ui/notchset/button";
import { notify, Toaster } from "@/components/ui/notchset/toast";
export default function LogSheetDemo() {
const [open, setOpen] = React.useState(false);
const [today, setToday] = React.useState([{ time: "07:40", text: "30 min walk" }]);
return (
<div>
<Button variant="primary" onClick={() => setOpen(true)}>
Log a reading
</Button>
<LogSheet
open={open}
onOpenChange={setOpen}
today={today}
onLog={async (entry) => {
setToday((t) => [...t, { time: entry.time, text: entry.text }]);
notify({ title: "Logged", detail: `${entry.text} · ${entry.time}`, action: { label: "Undo", onClick: () => setToday((t) => t.slice(0, -1)) } });
}}
/>
<Toaster />
</div>
);
}This example also uses Toast. This command installs them with it, so the example pastes as it is:
pnpm dlx shadcn@latest add @notchset-pro/log-sheet @notchset/toastcomponents/ui/notchset/blocks/log-sheet.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
open–
booleanRequired.
onOpenChange–
(open: boolean) => voidRequired.
onLog–
(entry: LogDraft) => Promise<void> | voidsaves it; throw an Error to refuse, with its message as the reason
today[]
{ time: string; text: string }[]today's entries, newest last: "07:45", "Slept well, no alarm"
kind–
LogKindwhat it opens on; left out, it asks first
now() => new Date()
() => Datethe time it defaults to (now)
onUndo–
() => voidtakes back what was just logged, from the receipt (the host then needn't toast it)
mealLine–
() => Promise<{ text: string; scripted?: boolean | undefined } | null>after a meal is logged: the coach's one line on it (your model), or null; left out, the receipt has none
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.
Pro is in early access.