Skip to content

renderQrSvg

function renderQrSvg(text, options?): string;

Defined in: src/qr.ts:61

Render text as a QR code SVG string.

Parameter Type
text string
options? QrSvgOptions

string

import { renderQrSvg } from "@xtandard/links/qr";
const svg = renderQrSvg("https://go.acme.com/launch?qr=1", { size: 512, foreground: "#0d9488" });