A thin bar in a table cell, with its number beside it.
Every shadcn style · one file
v2.1 · Updated Oct 21pnpm dlx shadcn@latest add https://notchset.dev/r/inline-bar.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/inline-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 { InlineBar } from "@/components/ui/notchset/inline-bar";
const ROWS = [
["Discovery", 0.9, "9 of 10 that left moved on"],
["Evaluation", 0.75, "6 of 8 that left moved on"],
["Proposal", 0.8, "4 of 5 that left moved on"],
] as const;
export default function InlineBarDemo() {
return (
<table className="w-full max-w-[420px] border-separate border-spacing-0 text-[length:var(--ns-text-body)]">
<tbody className="[&_td]:h-11 [&_td]:border-b [&_td]:border-[var(--ns-line-soft)] [&_td]:px-3">
{ROWS.map(([stage, share, label]) => (
<tr key={stage}>
<td className="text-[var(--ns-ink-2)]">{stage}</td>
<td>
<InlineBar value={share} max={1} figure={`${Math.round(share * 100)}%`} label={label} className="w-40" />
</td>
</tr>
))}
</tbody>
</table>
);
}components/ui/notchset/inline-bar.tsx
value–
numberRequired.
max–
numberRequired.
figure–
React.ReactNodeThe number, as it should read ("71%", "12 days").
label–
stringRead out in place of the bar ("5 of 7 deals moved on").
color–
stringGive your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.1.0 · 2026-10-21
Its fill lands at once under Reduced motion. The series violet by default, rounded and fading back toward its start.
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.