Cheque Check

Cheque Check is a copy-paste React component that stops cheque bounced as expired or post-dated 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/cheque-check
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

StopsCheque bounced as expired or post-dated

Was this component page useful?

How do I install Cheque Check?

pnpm dlx shadcn@latest add @bollard/cheque-check

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

How do I use Cheque Check in React?

cheque-check-usage.tsx
import { ChequeCheck, type ChequeMode } from "@/components/ui/cheque-check"

<ChequeCheck key="receive" mode="receive" now={NOW} defaultValue={{ date: "10072026", amount: 75000 }} />

What input mistakes does Cheque Check catch?

  • Impossible dates (31 November) and two-digit years
  • Cheques older than three months, or post-dated
  • A January cheque still carrying last year's date
  • Corrections other than to the date, which need a fresh cheque
  • Amounts where Positive Pay applies (₹50,000 and above)

What props does Cheque Check accept?

ChequeCheck props
PropTypeDefault
value

Controlled cheque details.

ChequeDetails—
defaultValue

Initial details when uncontrolled.

ChequeDetails—
onValueChange

Called on every edit and one-tap fix.

(value: ChequeDetails) => void—
mode

"receive": you are about to deposit it. "issue": you are writing it. Default "receive".

ChequeMode"receive"
now

"Today" in epoch ms, for deterministic rendering. Read from the clock after mount when omitted.

number—
rules

Validity, Positive Pay thresholds and the "deposit soon" window.

ChequeRules—
locale

Locale for dates and money.

string"en-IN"
currency

ISO currency code for the amount.

string"INR"
showAmount

Hides the amount field when the amount doesn't matter to you.

booleantrue
messages

Any visible string.

Partial<ChequeCheckMessages>—

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

How is Cheque Check accessible?

  • Labelled date, amount and correction fields; aria-invalid and aria-describedby to the issues list
  • Focus moves to the first fix
  • Issues use icons plus text

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

What are the limitations and server boundaries?

  • RBI doesn't define whether the three-month window ends on the same date or the day before; the earlier day is shown as safe
  • Your bank may make Positive Pay mandatory at a different amount
  • India rules by default; other countries need custom rules

What validation rules apply to Cheque Check?

Rules last verified:

Informational; check with your bank. Checked: three-month validity from the instrument's date; changes to payee or amount need a fresh cheque; Positive Pay enabled for ₹50,000 and above, banks may mandate it from ₹5,00,000. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does Cheque Check stop?

Cheque bounced as expired or post-dated

Also known as

cheque · check · rbi 3 month rule · cts cheque · positive pay · cheque date · bank deposit · pdc

What dependencies does Cheque Check require?

Cheque Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameCheque Check
Registry identifier@bollard/cheque-check
Install commandnpx shadcn@latest add @bollard/cheque-check
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 Cheque Check

How does Cheque Check validate Indian financial identifiers?

Cheque Check stops cheque bounced as expired or post-dated. Complies with national standards for Impossible dates (31 November) and two-digit years, Cheques older than three months, or post-dated, A January cheque still carrying last year's date, Corrections other than to the date, which need a fresh cheque, Amounts where Positive Pay applies (₹50,000 and above). Limitation: verify cheque-check with issuer gateway.

How do I install cheque-check with shadcn?

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

What props customize Cheque Check?

Cheque Check accepts `value`, `defaultValue`, `onValueChange`, `mode`, `now`. Configures cheque, check, rbi 3 month rule behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of cheque-check?

RBI doesn't define whether the three-month window ends on the same date or the day before; the earlier day is shown as safe. Your bank may make Positive Pay mandatory at a different amount. India rules by default; other countries need custom rules Server requirement: backend verification for cheque-check.

How does Cheque Check meet accessibility guidelines?

Labelled date, amount and correction fields; aria-invalid and aria-describedby to the issues list. Focus moves to the first fix. Issues use icons plus text. Minimizes errors: cheque validity 3 months, post dated cheque deposited.

Which components pair with Cheque Check?