vue-qrcode
Install
npm install vue-qrcode2 -S yarn add vue-qrcode2
QuickStart
; // in ES6 modules; // in CommonJSconst qrcode = ; // in Global variableconst qrcode = VueQrcodedefault; Vue;
Params
props
background
: Background color of the QR codebackgroundAlpha
: Background alpha of the QR codeforeground
: Foreground color of the QR codeforegroundAlpha
: Foreground alpha of the QR codelevel
: Error correction level of the QR code (L, M, Q, H)mime
: MIME type used to render the image for the QR codepadding
: Padding for the QR code (pixels)size
: Size of the QR code (pixels)value
: Value encoded within the QR code
You may use all of these props to change the format of your QR code.