QR Scan Check

QR Scan Check is a copy-paste React component that stops helps catch a fake qr sticker before it opens 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/qr-scan-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 fake QR sticker before it opens

Was this component page useful?

How do I install QR Scan Check?

pnpm dlx shadcn@latest add @bollard/qr-scan-check

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

How do I use QR Scan Check in React?

qr-scan-check-usage.tsx
import { QrScanCheck } from "@/components/ui/qr-scan-check"

<QrScanCheck
  key={scan.id}
  payload={scan.payload}
  printed={scan.printed}
  resolveRedirect={resolveRedirect}
  onOpen={(target) => setResult(`Opening ${target}`)}
  onCancel={() => setResult("Not opened. Good call.")}
/>

What input mistakes does QR Scan Check catch?

  • Destination that differs from the printed site (sticker over a real code)
  • Lookalike and brand-borrowing domains
  • Short links, followed through your resolver
  • App downloads
  • UPI codes: payee, pre-filled amount and "scan to receive a refund" scams

What props does QR Scan Check accept?

QrScanCheck props
PropTypeDefault
payload* (required)

The decoded text of the scanned code.

string—
printed

What is printed or shown beside the code: a domain ("paybyphone.com") or a merchant name.

string""
trusted

Brands to test for lookalikes.

string[]QR_TRUSTED_DOMAINS
shorteners

Hosts treated as link shorteners.

string[]URL_SHORTENERS
resolveRedirect

Follows a short link and resolves to its final URL (on your server; redirects can't be read from the browser).

(url: string) => Promise<string>—
onOpen

Called with what to open: the URL, the `upi://` link, or the tel/sms/mailto text.

(target: string) => void—
onCancel

Called when the user decides not to open it.

() => void—
locale

Locale for amounts.

string"en-IN"
messages

Any visible string; `types`, `verdict` and `issues` may be partial.

Partial<Omit<QrScanMessages, "types" | "verdict" | "issues">> & { types?: Partial<QrScanMessages["types"]> verdict?: Partial<QrScanMessag…—

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

How is QR Scan Check accessible?

  • Result is a group labelled by its heading
  • Verdict is in a polite live region with text, icons aria-hidden
  • Open and cancel are buttons

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: Check URLs against a safe-browsing service and verify UPI payees on the server before payment.

  • Doesn't scan the code itself; pass the decoded payload
  • Brand and shortener lists are defaults; pass trusted and shorteners
  • Can't tell whether a site you trust has been compromised

What expensive mistakes does QR Scan Check stop?

Helps catch a fake QR sticker before it opens

Also known as

qr scanner · scan qr · quishing · upi qr · phishing · short link · parking meter · payment qr

Field type

What dependencies does QR Scan Check require?

QR Scan Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameQR Scan Check
Registry identifier@bollard/qr-scan-check
Install commandnpx shadcn@latest add @bollard/qr-scan-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 QR Scan Check

How does QR Scan Check validate Indian financial identifiers?

QR Scan Check stops helps catch a fake QR sticker before it opens. Complies with national standards for Destination that differs from the printed site (sticker over a real code), Lookalike and brand-borrowing domains, Short links, followed through your resolver, App downloads, UPI codes: payee, pre-filled amount and "scan to receive a refund" scams. Limitation: verify qr-scan-check with issuer gateway.

How do I install qr-scan-check with shadcn?

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

What props customize QR Scan Check?

QR Scan Check accepts `payload`, `printed`, `trusted`, `shorteners`, `resolveRedirect`. Configures qr scanner, scan qr, quishing behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of qr-scan-check?

Doesn't scan the code itself; pass the decoded payload. Brand and shortener lists are defaults; pass trusted and shorteners. Can't tell whether a site you trust has been compromised Server requirement: Check URLs against a safe-browsing service and verify UPI payees on the server before payment.

How does QR Scan Check meet accessibility guidelines?

Result is a group labelled by its heading. Verdict is in a polite live region with text, icons aria-hidden. Open and cancel are buttons. Minimizes errors: qr code scam, quishing.

Which components pair with QR Scan Check?