A running total through the week against its goal line, last week as a ghost.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/goal-cumulative.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/goal-cumulative.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 { GoalCumulative } from "@/components/ui/notchset/goal-cumulative";
export default function GoalCumulativeDemo() {
return (
<div className="w-full max-w-[960px]">
<GoalCumulative label="Intensity minutes, this week" values={[22, 48, 48, 85, 110, 141, 152]} ghost={[15, 30, 62, 70, 95, 112, 128]} labels={["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]} goal={150} unit="min" />
</div>
);
}components/ui/notchset/goal-cumulative.tsx
values–
(number | null)[]the running total at each step; null for steps still to come
labels–
string[]Required.
goal–
numberRequired.
ghost–
number[]the period before, step for step
unit""
stringlabel–
stringRequired.
nowName"This week"
stringghostName"Last week"
stringheight250
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.