A lab report turned into results you confirm, value by value.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/import-reviewpnpm dlx shadcn@latest add @notchset-pro/import-reviewNeeds 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 { ImportReview, type ReviewRow } from "@/components/ui/notchset/blocks/import-review";
import { notify, Toaster } from "@/components/ui/notchset/toast";
const ROWS: ReviewRow[] = [
{ id: "tsh", name: "TSH", value: 2.4, unit: "µIU/mL", range: "0.45–4.5 mIU/L", confidence: "high", issue: "unit", suggestedUnit: "mIU/L", note: "They are the same amount: 1 µIU/mL = 1 mIU/L." },
{ id: "mg", name: "Magnesium", value: 2000, unit: "mg/dL", range: "1.6–2.3", confidence: "low", issue: "may-be-wrong", note: "Likely a lost decimal: your report probably says 2.0." },
{ id: "ft4", name: "Free T4", value: 1.19, unit: "ng/dL", range: "0.82–1.77", confidence: "high" },
{ id: "ft3", name: "Free T3", value: 3.0, unit: "pg/mL", range: "2.0–4.4", confidence: "high" },
{ id: "tpo", name: "TPO antibodies", value: 8, unit: "IU/mL", range: "<34", confidence: "medium" },
];
export default function ImportReviewDemo() {
return (
<div className="w-full max-w-[640px]">
<ImportReview
state="review"
title="Thyroid panel"
file="Thyroid-panel.pdf"
lab="Northside Lab"
drawnOn="2026-10-23"
rows={ROWS}
onSave={(rows) => notify({ title: `Saved ${rows.length} results`, detail: "Thyroid panel · 23 Oct", action: { label: "Undo", onClick: () => {} } })}
/>
<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/import-review @notchset/toastcomponents/ui/notchset/blocks/import-review.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
state–
ImportReviewStateRequired.
title–
stringRequired.
file–
stringRequired.
lab–
stringRequired.
drawnOn–
stringthe draw date, ISO
rows–
ReviewRow[]Required.
progress–
{ read: number; of: number }while reading: values read so far, of how many
reason–
stringunreadable: why, in words a person can act on
duplicateOf–
stringduplicate: which panel it matches
onSave–
(rows: ReviewRow[], meta: { lab: string; drawnOn: string }) => unknownSave is pressed. Return the host's promise if it has one; while `saving` is true Save is busy and presses are ignored, and every edit stays in the review until the host leaves it.
savingfalse
booleanthe host's save is in flight: Save is busy and cannot be pressed again
notice–
React.ReactNodewhere the host says a save failed (an OpBanner), above Save and with every edit still in place
onRetake–
() => voidonTypeIn–
() => voidonDiscard–
() => voidGive 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.
Lab results. Upload a lab report, confirm what was read, and see every result against its range, ready to share with a clinician.
2 free · 7 ProSee the Lab results kit
Pro is in early access.