qrCode() helper.
Render a QR code
Pass the text or URL to encode throughvalue. Integrations handle the API’s Base64 encoding automatically.
Use a helper
UseqrCode() when you need the selected image URL or canonical SVG markup outside a component.
Preview
With quiet zone
Without quiet zone
Control the quiet zone
Pictum includes clear space around QR modules by default. Setquiet_zone=false when the surrounding layout already provides enough empty space and you need edge-to-edge image output.
Choose a format
JPEG is not available because lossy compression can reduce QR code readability.
Set the display size
QR code components forward native attributes. Set display dimensions with width and height attributes or your application’s CSS. Raster images use a 256×256 source by default. The OpenAPI endpoint accepts raster source sizes from 64 through 2048 pixels.Handle data safely
The decoded value must be non-empty UTF-8 text no larger than 512 bytes. Integrations encode values before building the image URL.Direct HTTP access
The OpenAPI reference documents Base64 input, raster source sizing, response caching, and validation errors.