How far toward a target, as a row of thin ticks.
Every shadcn style · one file
v2.1 · Updated Oct 21pnpm dlx shadcn@latest add https://notchset.dev/r/tick-bar.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/tick-bar.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 { TickBar } from "@/components/ui/notchset/tick-bar";
export default function TickBarDemo() {
return (
<div className="flex w-full max-w-[320px] flex-col gap-5">
<TickBar label="Won and committed against target" value={1_420_000} done={680_000} max={2_000_000} figure="71%" valueText="$1.42M of $2M" />
{/* past the target: the scale runs on and a raised tick marks where the goal sat */}
<TickBar label="Won and committed against target" value={2_300_000} done={1_900_000} max={2_300_000} target={2_000_000} figure="115%" valueText="$2.3M of $2M" />
</div>
);
}components/ui/notchset/tick-bar.tsx
value–
numberRequired.
max–
numberRequired.
label–
stringWhat it measures, read out with the value ("Won and committed against target").
done0
numberThe part of value that is already done, drawn in the ok colour from the start.
target–
numberWhere the goal sits on the scale, when the scale runs past it.
valueText–
stringHow the value is read out ("$1.4M of $2M"); defaults to the percent of max.
figure–
React.ReactNodeThe number, written after the ticks.
ticks40
numberGive your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.1.0 · 2026-10-21
Filled ticks are the series violet (won stays ok), rounded and fading toward the base.
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.
Forecasts and reports. The figures a team runs on: forecast, attainment, what moved and why, with the number always written.
3 free · 6 ProSee the Forecasts and reports kit