Change Readout

Change Readout is a copy-paste React component that stops percentage points mistaken for percent before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/change-readout
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsPercentage points mistaken for percent

Was this component page useful?

How do I install Change Readout?

pnpm dlx shadcn@latest add @bollard/change-readout

The files land in your project. They're yours to edit.

How do I use Change Readout in React?

change-readout-usage.tsx
import { ChangeReadout } from "@/components/ui/change-readout"

{ label: "Pro plan price", node: <ChangeReadout from={1200} to={1500} currency="INR" goodDirection="down" />

What input mistakes does Change Readout catch?

  • Percentage points confused with percent
  • Meaningless percentages from a zero base or a sign change
  • Misleading signs when the base is negative
  • "+150%" misread as 1.5×, by adding the multiple

What props does Change Readout accept?

ChangeReadout props
PropTypeDefault
from* (required)

The earlier value.

number—
to* (required)

The later value.

number—
kind

"percent" when the values are themselves percentages (4 means 4%): the difference is then shown in points.

"number" | "percent""number"
goodDirection

Which way is good news, for colour and the "better/worse" wording. "none" keeps it neutral.

"up" | "down" | "none""up"
currency

Shorthand for currency formatting, e.g. "INR". Ignored when `format` is set.

string—
locale

Locale for number formatting.

string"en-IN"
format

Formats one magnitude (always called with a value ≥ 0 for the delta).

(value: number) => string—
pointsLabel

Unit label for percentage points, e.g. "pts".

string"pts"
pointsHint

Explanation of percentage points, shown as the abbreviation's title.

string"Percentage points: the plain difference between two perc…
zeroBaseText

Shown instead of a percentage when the starting value is zero.

string"no % from 0"
crossesZeroText

Shown instead of a percentage when the value changes sign.

string"crossed zero, no %"
noChangeText

Shown when the values are equal.

string"no change"
betterLabel

Word for a change in the good direction.

string"better"
worseLabel

Word for a change in the bad direction.

string"worse"
toLabel

Word read between the two values.

string"to"

* required. Also accepts the native props of <span> (className, aria-*, data-*…), passed through to it.

How is Change Readout accessible?

  • Arrows and separators are aria-hidden; a text label reads "to" between values
  • Good or bad is stated in words, not only colour
  • "pts" is an <abbr> with an explanatory title

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • Formats and labels only; it doesn't know whether the underlying numbers are right
  • Good/bad depends on the goodDirection you set

What expensive mistakes does Change Readout stop?

Percentage points mistaken for percent

Also known as

percent change · delta · kpi · growth · pts · dashboard · metric card · trend

Field type

What dependencies does Change Readout require?

Change Readout facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameChange Readout
Registry identifier@bollard/change-readout
Install commandnpx shadcn@latest add @bollard/change-readout
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Change Readout

What form validation mistake does Change Readout catch?

Change Readout prevents percentage points mistaken for percent. Shows a change both as an amount and a percentage, keeping percentage points apart from percent, so changes aren't misread. Catches: Percentage points confused with percent, Meaningless percentages from a zero base or a sign change, Misleading signs when the base is negative, "+150%" misread as 1.5×, by adding the multiple. Limitation: validate change-readout schemas on backend.

How do I install change-readout with shadcn?

Run `npx shadcn@latest add @bollard/change-readout`. Sources added: registry/default/change-readout/change-readout.tsx. Package requirements: lucide-react.

What props customize Change Readout?

Change Readout accepts `from`, `to`, `kind`, `goodDirection`, `currency`. Configures percent change, delta, kpi behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of change-readout?

Formats and labels only; it doesn't know whether the underlying numbers are right. Good/bad depends on the goodDirection you set Server requirement: backend verification for change-readout.

How does Change Readout meet accessibility guidelines?

Arrows and separators are aria-hidden; a text label reads "to" between values. Good or bad is stated in words, not only colour. "pts" is an <abbr> with an explanatory title. Minimizes errors: percent vs percentage points, growth from zero.

Which components pair with Change Readout?