Elements

Reference

QR Code

QrCode, dressed in the paper-and-ink system: the pattern prints in ink on the page, with an optional paper badge and a seal-cut download control. The parts — Root, Frame, Pattern, Overlay, DownloadTrigger.

Root · Frame · Pattern · Overlay · DownloadTrigger

#DownloadTrigger

PropTypeDefaultDescription
fileNamestringThe name of the file.
mimeTypeDataUrlTypeThe mime type of the image.
qualitynumber | undefinedThe quality of the image.

#Frame

A styled part — no props of its own; it takes the anatomy's shared styling.

#Overlay

A styled part — no props of its own; it takes the anatomy's shared styling.

#Pattern

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
defaultValuestringThe initial value to encode when rendered. Use when you don't need to control the value of the qr code.
encodingqrcode.QrCodeGenerateOptionsThe qr code encoding options.
idstringThe unique identifier of the machine.
idsPartial<{ root: string; frame: string; }>The element ids.
modelValuestringThe v-model value of the qr code
pixelSizenumberThe pixel size of the qr code.