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';
value="https://ark-ui.com"
value="https://ark-ui.com"
import { QrCode } from '@fintech-sandpit/ui/vue';
| Name | Type | Required | Default | Description |
|---|
value | string | Yes | | The value to encode in the QR code |
size | Size | | md | Size of the QR code |
encoding | QrCodeEncoding | | H | Encoding of the QR code |
invert | boolean | | false | Whether to invert the QR code |
overlaySrc | string | | — | Optional image overlay source URL |
overlayAlt | string | | — | Alt text for the overlay image |
| Name | Type | Required | Default | Description |
|---|
value | string | Yes | | The value to encode in the QR code |
size | Size | | md | Size of the QR code |
encoding | QrCodeEncoding | | H | Encoding of the QR code |
invert | boolean | | false | Whether to invert the QR code |
overlay-src | string | | — | Optional image overlay source URL |
overlay-alt | string | | — | Alt text for the overlay image |
type QrCodeEncoding = 'H' | 'L' | 'M' | 'Q'
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl'