Lab results grouped by where they stand, then by system.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/result-listpnpm dlx shadcn@latest add @notchset-pro/result-listNeeds 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 { ResultList, type ResultRow } from "@/components/ui/notchset/blocks/result-list";
import { SegmentedControl } from "@/components/ui/notchset/segmented-control";
const lab = (low?: number, high?: number) => ({ low, high, kind: "lab" as const, source: "Northside Lab" });
const ROWS: ResultRow[] = [
{ id: "ldl", name: "LDL cholesterol", system: "Heart", value: 128, unit: "mg/dL", range: lab(undefined, 99), better: "down", change: { words: "−15 since Mar", tone: "ok" }, previous: { value: 143, label: "25 Mar" }, date: "16 Oct" },
{ id: "apob", name: "ApoB", system: "Heart", value: 98, unit: "mg/dL", range: lab(undefined, 99), better: "down", change: { words: "−14 since Mar", tone: "ok" }, previous: { value: 112, label: "25 Mar" }, date: "16 Oct" },
{ id: "mg", name: "Magnesium", system: "Nutrients", value: 2000, unit: "mg/dL", range: lab(1.6, 2.3), flag: "may-be-wrong", better: "in-range", previous: { value: 2.0, label: "25 Mar" }, date: "16 Oct" },
{ id: "vitd", name: "Vitamin D", system: "Nutrients", value: 41, unit: "ng/mL", range: lab(30, 100), better: "in-range", change: { words: "+18 since Mar", tone: "ok" }, previous: { value: 23, label: "25 Mar" }, date: "16 Oct" },
{ id: "fer", name: "Ferritin", system: "Nutrients", value: 48, unit: "ng/mL", range: lab(30, 150), better: "in-range", change: { words: "+23 since Mar", tone: "ok" }, previous: { value: 25, label: "25 Mar" }, date: "16 Oct" },
{ id: "tsh", name: "TSH", system: "Thyroid", value: 2.3, unit: "mIU/L", range: lab(0.45, 4.5), better: "in-range", change: { words: "+0.2 since Mar", tone: "neutral" }, previous: { value: 2.1, label: "25 Mar" }, date: "16 Oct" },
];
export default function ResultListDemo() {
const [open, setOpen] = React.useState<string | null>(null);
const [view, setView] = React.useState<"list" | "compare">("list");
return (
<div className="flex w-full max-w-[760px] flex-col gap-3">
<SegmentedControl label="View" size="sm" value={view} onValueChange={setView} options={[{ value: "list", label: "Latest" }, { value: "compare", label: "Compare" }]} className="self-start" />
<ResultList rows={ROWS} open={open} onOpen={setOpen} compare={view === "compare" ? { before: "Mar", after: "Oct" } : undefined} />
</div>
);
}This example also uses Segmented control. This command installs them with it, so the example pastes as it is:
pnpm dlx shadcn@latest add @notchset-pro/result-list @notchset/segmented-controlcomponents/ui/notchset/blocks/result-list.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
rows–
ResultRow[]Required.
group"system"
"system" | "standing"by system (the desktop table) or by standing
compare–
{ before: string; after: string }two panels side by side: the earlier and later panel's names
open–
string | nullthe row open beside the list
onOpen–
(id: string) => voidonEdit–
(id: string) => voida value that may be wrong offers Edit
empty"No results match."
React.ReactNodeshown when the filter leaves nothing
format(n) => formatReading(n)
(n: number) => stringGive 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.