Callback Number Check

Callback Number Check is a copy-paste React component that stops called back a premium-rate scam number 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/callback-number-check
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 3 extra npm packages
  • A11y guidance in docs

StopsCalled back a premium-rate scam number

Was this component page useful?

How do I install Callback Number Check?

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

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

How do I use Callback Number Check in React?

callback-number-check-usage.tsx
import { CallbackNumberCheck } from "@/components/ui/callback-number-check"

<CallbackNumberCheck
  key={call.id}
  number={call.number}
  caption={call.caption}
  rings={call.rings}
  officialName={call.officialName}
  officialNumbers={call.officialNumbers}
  homeCountry={home}
  onCall={(e164) => setLog(`Dialling ${e164}…`)}
  onDismiss={() => setLog("Not calling. Good call.")}
/>

What input mistakes does Callback Number Check catch?

  • +1 numbers in Caribbean countries that look like US area codes (e.g. 876 Jamaica)
  • One-ring missed calls from abroad (wangiri pattern)
  • Premium-rate and shared-cost lines
  • Toll-free numbers that are only free in their own country, and unassigned ranges
  • A number claiming to be an organisation that isn't in the officialNumbers you pass

What props does Callback Number Check accept?

CallbackNumberCheck props
PropTypeDefault
number* (required)

The number as you received it: "+1 876 555 0142", "0909 879 0000", "1800-266-0123".

string—
homeCountry

Country the caller's phone is in. Defaults to the browser language's region, then "US".

CountryCode—
defaultCountry

Country to read a number without + in. Defaults to `homeCountry`.

CountryCode—
rings

Rings before a missed call hung up; 1 flags the one-ring pattern.

number—
officialName

Who the number claims to be ("HDFC Bank"); used with `officialNumbers`.

string—
officialNumbers

That organisation's published numbers. A number not on the list must be confirmed.

string[]—
caption

Where it came from: "Missed call · 2:13 AM".

React.ReactNode—
onCall

Called with the E.164 number when the call actually starts. The link still dials `tel:`.

(e164: string) => void—
onDismiss

Called when the user picks "Don't call" on a risky number.

() => void—
locale

Language for country names.

string—
messages

Override any visible text.

Partial<Omit<CallbackNumberCheckMessages, "findings" | "types">> & { findings?: Partial<CallbackNumberCheckMessages["findings"]> types?: …—

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

How is Callback Number Check accessible?

  • Findings are a labelled list with icon plus text
  • The Call button is described by the status once armed for a second press
  • Status is announced in a role="status" region (visually hidden until armed)
  • Motion respects prefers-reduced-motion

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

What are the limitations and server boundaries?

  • Line types come from libphonenumber metadata, which can lag behind real number allocations
  • It cannot tell who owns a number or detect a spoofed caller ID
  • Risky calls still go through after a second press

What expensive mistakes does Callback Number Check stop?

Called back a premium-rate scam number

Also known as

phone number · callback · libphonenumber · +91 · missed call · scam call · toll free · call button

Field type

What dependencies does Callback Number Check require?

Callback Number Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameCallback Number Check
Registry identifier@bollard/callback-number-check
Install commandnpx shadcn@latest add @bollard/callback-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, libphonenumber-js, motion
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 Callback Number Check

How does Callback Number Check validate Indian financial identifiers?

Callback Number Check stops called back a premium-rate scam number. Complies with national standards for +1 numbers in Caribbean countries that look like US area codes (e.g. 876 Jamaica), One-ring missed calls from abroad (wangiri pattern), Premium-rate and shared-cost lines, Toll-free numbers that are only free in their own country, and unassigned ranges, A number claiming to be an organisation that isn't in the officialNumbers you pass. Limitation: verify callback-number-check with issuer gateway.

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

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

What props customize Callback Number Check?

Callback Number Check accepts `number`, `homeCountry`, `defaultCountry`, `rings`, `officialName`. Configures phone number, callback, libphonenumber behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of callback-number-check?

Line types come from libphonenumber metadata, which can lag behind real number allocations. It cannot tell who owns a number or detect a spoofed caller ID. Risky calls still go through after a second press Server requirement: backend verification for callback-number-check.

How does Callback Number Check meet accessibility guidelines?

Findings are a labelled list with icon plus text. The Call button is described by the status once armed for a second press. Status is announced in a role="status" region (visually hidden until armed). Motion respects prefers-reduced-motion. Minimizes errors: missed call from abroad scam, one ring scam.

Which components pair with Callback Number Check?