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 { QrCode } from '@fintech-sandpit/ui/react';
return (
<QrCode
value="https://ark-ui.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
overlaySrcstringOptional image overlay source URL
overlayAltstringAlt text for the overlay image
type QrCodeEncoding = 'H' | 'L' | 'M' | 'Q'
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'