Skip to content

QrCode

The QrCode component generates QR codes from text, URLs, or any string data. Built on top of Ark UI with customizable size and optional image overlay.

// Import component
import { QrCode } from '@fintech-sandpit/ui/react';
// Import styles (optional)
import '@fintech-sandpit/ui/style/components/qr_code.css';
return (
<QrCode
value="https://nayaone.com"
size="md"
/>
);
NameTypeRequiredDefaultDescription
valuestringYesThe value to encode in the QR code
sizeSizemdSize of the QR code
encodingQrCodeEncodingHEncoding of the QR code
invertbooleanfalseWhether to invert the QR code
overlaySrcstring—Optional image overlay source URL
overlayAltstring—Alt text for the overlay image
type QrCodeEncoding = 'H' | 'L' | 'M' | 'Q'
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'