renderQrSvg
function renderQrSvg(text, options?): string;Defined in: src/qr.ts:61
Render text as a QR code SVG string.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
options? |
QrSvgOptions |
Returns
Section titled “Returns”string
Example
Section titled “Example”import { renderQrSvg } from "@xtandard/links/qr";
const svg = renderQrSvg("https://go.acme.com/launch?qr=1", { size: 512, foreground: "#0d9488" });