Amount in Words

Amount in Words is a copy-paste React component that stops extra zero on a transfer 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/amount-in-words
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

StopsExtra zero on a transfer

Was this component page useful?

How do I install Amount in Words?

pnpm dlx shadcn@latest add @bollard/amount-in-words

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

How do I use Amount in Words in React?

amount-in-words-usage.tsx
import { AmountInWords } from "@/components/ui/amount-in-words"

return <AmountInWords amount={250000} currency="INR" value={words} onValueChange={setWords} />

What input mistakes does Amount in Words catch?

  • An extra or missing zero, by naming each digit group
  • Typed words that do not match the figure, with a one-tap correction
  • Confusion between lakh/crore and million/billion, via the other system shown alongside
  • Mismatches that are a power of ten apart ("10× more")

What props does Amount in Words accept?

AmountInWords props
PropTypeDefault
amount* (required)

The amount in figures, in major units (250000.5 is ₹2,50,000.50).

number—
currency

ISO currency code. INR, USD, EUR, GBP, AED and SGD have cheque wording built in.

string"INR"
system

Number system for grouping and words. Defaults to `indian` for INR, `international` otherwise.

NumberSystemcurrency === "INR" ? "indian" : "international"
showOtherSystem

Shows the amount in the other system too (2.5 lakh = 250 thousand) for readers used to it.

booleantrue
verify

Shows a field that checks words someone typed or wrote against the figure.

booleantrue
value

Controlled words typed into the check field.

string—
defaultValue

Initial words when uncontrolled.

string""
onValueChange

Called with the words as they are typed or fixed.

(value: string) => void—
verifyLabel

Label of the check field.

string"Amount in words, as written"
mismatchMessage

Shown when the words describe a different amount. Receives the amount the words describe.

(wordsAmount: string, gap: string) => string(words, gap) => `These words say ${words}, ${gap} than th…
mismatchNote

Why a mismatch matters. Indian law (NI Act §18) pays the amount in words.

string"If they differ, the amount in words is the one paid."
matchMessage

Shown when the words match the figure.

string"Words match the figure."
onlyMessage

Shown when the words don't end in "Only".

string"End with “Only” so nothing can be added after it."

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

How is Amount in Words accessible?

  • The grouped figure has an aria-label with the full amount; the visual group labels are aria-hidden
  • Words input has a <label>, aria-invalid on mismatch and aria-describedby to its status
  • Match status is aria-live="polite"; a mismatch uses role="alert"
  • Copy button has an aria-label that changes to "Copied"

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

What are the limitations and server boundaries?

  • Words are English only, with cheque wording built in for INR, USD, EUR, GBP, AED and SGD
  • Takes the amount as a JavaScript number in major units, so very large values lose precision
  • Word matching is a text comparison; unusual spellings may be reported as a mismatch

What expensive mistakes does Amount in Words stop?

Extra zero on a transfer

Also known as

amount in words · cheque · lakh · crore · rupees · number to words · neft · invoice

Field type

What dependencies does Amount in Words require?

Amount in Words facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameAmount in Words
Registry identifier@bollard/amount-in-words
Install commandnpx shadcn@latest add @bollard/amount-in-words
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 Amount in Words

How does Amount in Words validate Indian financial identifiers?

Amount in Words stops extra zero on a transfer. Complies with national standards for An extra or missing zero, by naming each digit group, Typed words that do not match the figure, with a one-tap correction, Confusion between lakh/crore and million/billion, via the other system shown alongside, Mismatches that are a power of ten apart ("10× more"). Limitation: verify amount-in-words with issuer gateway.

How do I install amount-in-words with shadcn?

Run `npx shadcn@latest add @bollard/amount-in-words`. Sources added: registry/default/amount-in-words/amount-in-words.tsx, registry/default/amount-in-words/words.ts. Package requirements: lucide-react.

What props customize Amount in Words?

Amount in Words accepts `amount`, `currency`, `system`, `showOtherSystem`, `verify`. Configures amount in words, cheque, lakh behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of amount-in-words?

Words are English only, with cheque wording built in for INR, USD, EUR, GBP, AED and SGD. Takes the amount as a JavaScript number in major units, so very large values lose precision. Word matching is a text comparison; unusual spellings may be reported as a mismatch Server requirement: backend verification for amount-in-words.

How does Amount in Words meet accessibility guidelines?

The grouped figure has an aria-label with the full amount; the visual group labels are aria-hidden. Words input has a <label>, aria-invalid on mismatch and aria-describedby to its status. Match status is aria-live="polite"; a mismatch uses role="alert". Copy button has an aria-label that changes to "Copied". Minimizes errors: 2 lakh vs 20 lakh, amount in words.

Which components pair with Amount in Words?