Components
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.
#Basic usage
#Props
#DownloadTrigger
| Prop | Type | Default | Description |
|---|---|---|---|
fileName | string | The name of the file. | |
mimeType | DataUrlType | The mime type of the image. | |
quality | number | undefined | The 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
| Prop | Type | Default | Description |
|---|---|---|---|
defaultValue | string | The initial value to encode when rendered. Use when you don't need to control the value of the qr code. | |
encoding | qrcode.QrCodeGenerateOptions | The qr code encoding options. | |
id | string | The unique identifier of the machine. | |
ids | Partial<{ root: string; frame: string; }> | The element ids. | |
modelValue | string | The v-model value of the qr code | |
pixelSize | number | The pixel size of the qr code. |