Invoice Number Check

Invoice Number Check is a copy-paste React component that stops helps catch a gst invoice number the rules don't allow 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/invoice-number-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

StopsHelps catch a GST invoice number the rules don't allow

Was this component page useful?

How do I install Invoice Number Check?

pnpm dlx shadcn@latest add @bollard/invoice-number-check

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

How do I use Invoice Number Check in React?

invoice-number-check-usage.tsx
import { InvoiceNumberCheck, type IssuedInvoice } from "@/components/ui/invoice-number-check"

<InvoiceNumberCheck value={value} onValueChange={setValue} issued={issued} date="2026-10-14" placeholder="SK/26-27/0008" />

What input mistakes does Invoice Number Check catch?

  • More than 16 characters
  • Characters other than letters, digits, hyphen and slash
  • Number already used this financial year, including case-only differences and cancelled numbers
  • Financial-year token that doesn't match the invoice date
  • Skipped or reused counter and gaps in the series

What props does Invoice Number Check accept?

InvoiceNumberCheck props
PropTypeDefault
value

Controlled invoice number.

string—
defaultValue

Initial invoice number when uncontrolled.

string""
onValueChange

Called with the number on every change.

(value: string) => void—
issued

Invoices already issued under this GSTIN, any year.

IssuedInvoice[][]
date

This invoice's date; its financial year decides uniqueness and the reset. Defaults to today after mount.

Date | number | string—
einvoice

Apply the e-invoice rule that a number can't start with 0, / or -.

booleantrue
locale

BCP 47 locale for dates in messages.

string"en-IN"
messages

Override any visible string.

Partial<InvoiceNumberCheckMessages>—
wrapperClassName

Classes for the wrapper; `className` styles the input.

string—

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

How is Invoice Number Check accessible?

  • Visible label; input has aria-invalid on errors and is described by the hint
  • Problems are announced in a polite live region; icons are aria-hidden
  • Fix and next-number buttons are real buttons; focus returns to the input after applying

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

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Allocate invoice numbers on the server with a unique constraint per GSTIN and financial year.

  • Only checks against the issued list you pass; numbers issued elsewhere are unknown
  • Case-insensitive duplicate matching mirrors portal behaviour as the authors understood it, not a rule text
  • Doesn't validate the rest of the invoice (GSTIN, HSN, tax)

What validation rules apply to Invoice Number Check?

Rules last verified:

Informational; check the official source. Confirmed: consecutive serial number not exceeding sixteen characters, letters, numerals, - and /, one or multiple series, unique for a financial year. The case-insensitive portal comparison and e-invoice specifics are not from the rule text and were not verified. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does Invoice Number Check stop?

Helps catch a GST invoice number the rules don't allow

Also known as

invoice number · gst invoice · bill number · cgst rule 46 · e-invoice · billing · invoice series · financial year

Field type

What dependencies does Invoice Number Check require?

Invoice Number Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameInvoice Number Check
Registry identifier@bollard/invoice-number-check
Install commandnpx shadcn@latest add @bollard/invoice-number-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 Invoice Number Check

How does Invoice Number Check validate Indian financial identifiers?

Invoice Number Check stops helps catch a GST invoice number the rules don't allow. Complies with national standards for More than 16 characters, Characters other than letters, digits, hyphen and slash, Number already used this financial year, including case-only differences and cancelled numbers, Financial-year token that doesn't match the invoice date, Skipped or reused counter and gaps in the series. Limitation: verify invoice-number-check with issuer gateway.

How do I install invoice-number-check with shadcn?

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

What props customize Invoice Number Check?

Invoice Number Check accepts `value`, `defaultValue`, `onValueChange`, `issued`, `date`. Configures invoice number, gst invoice, bill number behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of invoice-number-check?

Only checks against the issued list you pass; numbers issued elsewhere are unknown. Case-insensitive duplicate matching mirrors portal behaviour as the authors understood it, not a rule text. Doesn't validate the rest of the invoice (GSTIN, HSN, tax) Server requirement: Allocate invoice numbers on the server with a unique constraint per GSTIN and financial year.

How does Invoice Number Check meet accessibility guidelines?

Visible label; input has aria-invalid on errors and is described by the hint. Problems are announced in a polite live region; icons are aria-hidden. Fix and next-number buttons are real buttons; focus returns to the input after applying. Minimizes errors: gst invoice number format, invoice number 16 characters.

Which components pair with Invoice Number Check?