qrcanvas-vue

QRCanvas component for Vue.js
40,633 73
Install
npm install qrcanvas-vue
Latest Version:3.1.0
Vue:3
Older releases:2
License:ISC
Last Updated:Jun 21, 2026
Links: GitHub  ·  npm
Maintainer: gera2ld

qrcanvas-vue

NPM License Downloads

This a QRCode component for use with Vue.js, based on qrcanvas.

Usage

Note: qrcanvas-vue@2 works with vue@2, qrcanvas-vue@3 works with vue@3.

  1. With bundlers:

    # Installation
    $ npm i vue@next qrcanvas-vue
    
  2. In browser:

    <script src="https://cdn.jsdelivr.net/combine/npm/qrcanvas@3,npm/qrcanvas-vue@3"></script>
    <div id="root">
      <qr-canvas :options="options" @updated="onUpdated"></qr-canvas>
    </div>
    

See examples for more usage.

Props

  • options is passed to qrcanvas. For more details, see qrcanvas docs.

  • Be sure to pass a new options object if data is updated:

    this.options = Object.assign({}, this.options, {
      data: 'new data',
    });
    

Events

  • beforeUpdate

    Fired before the canvas is updated. The only parameter is the canvas.

  • updated

    Fired after the canvas is updated. The only parameter is the canvas.

Related Packages

v-qrcode

a qrcode component for vue

11,139
vue-qrcode

🤳 A Vue component for QR code generation with `qrcode`

1,342,346 285
qrcode-vue

a vue qrcode base on qr.js

33,873 13
vue-barcode-reader

Vue barcodes and QR codes scanner

512,790 231

Version History

Version Released License
3.1.0 ISC
3.0.0 ISC
2.1.1 ISC
2.1.0 ISC
2.0.5 ISC
Pre-releases (1)
Version Released License
1.2.0-0 ISC