QRCode
v1.0.2NewUpdated 20 Jul 2026Scannable-code tiles for payment slips, receipts, shipping labels and product tags. QRCode renders a token-themed SVG QR (react-qr-code) with quiet-zone padding, optional centre logo slot, caption and a download-as-PNG a
Preview
Live · 9 stories▸Why this is recommendedqrqrcodepromptpaypayment+9
QRCode — prompt pay sample.
- ✓PromptPay payment QR on invoices and receipts
- ✓Showing a QR code customers scan with a Thai banking app to pay
- ✓Deep-link QR for restaurant menus, tracking pages and check-ins
- ✓Letting a user save a payment QR as a PNG image
- ✓QR on a printed payment slip with the shop logo in the centre
- ✓Event ticket or check-in QR codes
- SVG QR via react-qr-code with L/M/Q/H error-correction levels
- Token-driven fg/bg colours (foreground/background) with override props
- Centre logo/monogram slot — auto-bumps level to H for scannability
- Caption slot rendered as an accessible figcaption
- Download-as-PNG button (SVG→canvas, CSS variables resolved to concrete colours)
- Configurable quiet-zone padding and export size
- role="img" aria labelling with a customisable aria-label
- ✕Scanning/decoding codes from camera input (render-only)
- ✕Dynamic payloads that must be regenerated server-side per scan
- ✕1D product barcodes on retail labels (use Barcode)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
valuePayload encoded into the QR code (URL, PromptPay payload, plain text…)
yessizeRendered edge length of the QR svg in px (default 160)
—levelError-correction level (default M; H automatically when a centre label is set)
—paddingQuiet-zone padding around the code in px (default 12)
—fgColorModule colour (default the foreground token)
—bgColorQuiet-zone / background colour (default the background token)
—labelCentre logo/monogram overlay slot, rendered on a bgColor chip; not included in PNG export
—captionCaption rendered under the code as a figcaption
—downloadableRenders a "Download PNG" button under the tile (default false)
—downloadFileNameFile name for the PNG export (default qr-code.png)
—downloadSizeEdge length in px of the exported PNG (default 512)
—aria-labelAccessible description of what the code encodes (default "QR code")
—