vue-qrcode
QR code component for Vue 3, bases on node-qrcode.
Main files
dist/
├── vue-qrcode.js (UMD, default)
├── vue-qrcode.min.js (UMD, compressed)
├── vue-qrcode.esm.js (ECMAScript Module)
└── vue-qrcode.esm.min.js (ECMAScript Module, compressed)
Getting started
Installation
npm install vue qrcode @chenfengyuan/vue-qrcode
In browser:
<script src="/path/to/vue.js"></script><!-- Vue.js is required -->
<script src="/path/to/qrcode.js"></script><!-- qrocde is required -->
<script src="/path/to/vue-qrcode.js"></script>
Usage
import Vue from 'vue';
import VueQrcode from '@chenfengyuan/vue-qrcode';
const app = Vue.createApp({});
app.component(VueQrcode.name, VueQrcode);
<vue-qrcode value="Hello, World!" :options="{ width: 200 }"></vue-qrcode>
Browser support
Same as Vue 3.