View as Markdown

API reference: @salmonui/charts/barcode

QRCodeApitype

import type { QRCodeApi } from '@salmonui/charts/barcode';
type QRCodeApi = BarcodeApi;
QRCodeApi members (5, 5 inherited)
NameSignatureDescription
elementinheritedelement: SVGSVGElement | null;

The root <svg> (null before mount).

toSVGStringinheritedtoSVGString: () => string;

Standalone SVG markup; works without a DOM (server, tests).

toBlobinheritedtoBlob: (format?: BarcodeImageFormat | undefined, options?: Omit<BarcodeExportOptions, "fileName" | "format"> | undefined) => Promise<...>;
toDataURLinheritedtoDataURL: (format?: BarcodeImageFormat | undefined, options?: Omit<BarcodeExportOptions, "fileName" | "format"> | undefined) => Promise<...>;
exportinheritedexport: (options?: BarcodeExportOptions | undefined) => Promise<void>;

Downloads the symbol; settles after the download started.