QR code

A scannable QR code rendered as SVG.

Styled

API reference

Inputs

PropTypeDefaultDescription
valuestring''Text or URL to encode into the QR code.
sizenumber160Rendered width and height of the SVG in pixels.
labelstring'QR code'Accessible label for the QR code image.
foregroundstring'currentColor'Fill colour of the QR modules (dark squares).
backgroundstring'transparent'Background fill colour behind the modules.
marginnumber2Quiet-zone border width, in modules.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.