A figure you changed rolls only the digits that moved.
Every shadcn style · one file
v2.1 · Updated Oct 21pnpm dlx shadcn@latest add https://notchset.dev/r/rolling-number.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/rolling-number.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 * as React from "react";
import { Button } from "@/components/ui/notchset/button";
import { RollingNumber } from "@/components/ui/notchset/rolling-number";
export default function RollingNumberDemo() {
const [seats, setSeats] = React.useState(8);
return (
<div className="flex items-center gap-3">
<Button size="sm" aria-label="One seat fewer" onClick={() => setSeats(Math.max(1, seats - 1))}>
−
</Button>
<span className="min-w-36 text-[length:var(--ns-text-strong)] font-[number:var(--ns-weight-strong)] tabular-nums">
<RollingNumber value={`$${(seats * 48).toLocaleString("en-US")}.00`} />
</span>
<Button size="sm" aria-label="One more seat" onClick={() => setSeats(seats + 1)}>
+
</Button>
<span className="text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">{seats} seats × $48 a month</span>
</div>
);
}This example also uses Button. This command installs them with it, so the example pastes as it is:
pnpm dlx shadcn@latest add https://notchset.dev/r/rolling-number.json https://notchset.dev/r/button.jsoncomponents/ui/notchset/rolling-number.tsx
value–
stringRequired.
instant–
booleanSwap without rolling: a figure that follows a reader along a chart reads, it doesn't roll (no change was made).
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.1.0 · 2026-10-21
Its digit window declares itself a mask (data-ns-mask).
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.
Billing and plans. Choosing a plan, paying for it and seeing exactly what was charged.
1 free · 4 ProSee the Billing and plans kit