A glucose sensor's day over the target band, each meal's peak marked.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/glucose-day.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/glucose-day.jsonFree, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
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 { GlucoseDay } from "@/components/ui/notchset/glucose-day";
/* a sensor's day: near 85 overnight with a dawn rise, then breakfast, lunch and dinner, each rising and settling */
const meals = [
{ at: 92, label: "Breakfast", a: 18 },
{ at: 153, label: "Lunch", a: 44 },
{ at: 228, label: "Dinner", a: 34 },
];
const values = Array.from({ length: 288 }, (_, i) => {
const dawn = i >= 48 && i <= 84 ? (7 * (i - 48)) / 36 : i > 84 && i < 108 ? 7 * (1 - (i - 84) / 24) : 0;
const rise = meals.reduce((s, m) => {
const x = (i - m.at) / 7;
return x > 0 ? s + m.a * x * Math.exp(1 - x) : s;
}, 0);
return Math.round(84 + dawn + rise + Math.sin(i / 3) * 1.5);
});
export default function GlucoseDayDemo() {
return (
<div className="w-full max-w-[720px]">
<GlucoseDay
label="Glucose, yesterday"
values={values}
band={{ low: 70, high: 140 }}
format={(v) => `${Math.round(v)} mg/dL`}
meals={meals.map((m) => ({ at: m.at, label: m.label, peak: { at: m.at + 7, value: values[m.at + 7]!, rise: `+${values[m.at + 7]! - values[m.at]!}` } }))}
doses={[{ at: 96, label: "Semaglutide 0.5 mg" }]}
/>
</div>
);
}components/ui/notchset/glucose-day.tsx
values–
(number | null)[]one value per step from midnight (288 for 5 minutes), null where nothing was read
band–
{ low: number; high: number }the target band, in the values' unit
format(v) => String(Math.round(v * 10) / 10)
(v: number) => stringmeals[]
GlucoseDayMeal[]meals at their slot, each with its peak (slot, value, the rise in words) and when it came back
doses[]
{ at: number; label: string }[]doses at their slot, named as logged
step5
numberminutes per value
label–
stringRequired.
height240
numberGive 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.