dist/
├── vue-qrcode.js (75 KB, UMD)
├── vue-qrcode.min.js (19 KB, UMD, compressed)
├── vue-qrcode.common.js (75 KB, CommonJS)
└── vue-qrcode.esm.js (75 KB, ES Module)
- Download the latest release.
- Clone the repository:
git clone https://github.com/xkeshi/vue-qrcode.git
. - Install with NPM:
npm install xkeshi/vue-qrcode
.
- Browser:
window.VueQrcode
- CommonJS:
var VueQrcode = require('vue-qrcode')
- ES2015:
import VueQrcode from 'vue-qrcode'
Vue.component('qrcode', VueQrcode);
<qrcode value="Hello, World!" :options="{ size: 200 }"></qrcode>
- Type:
String
The value of the qrcode.
- Type:
Object
The options for the qrcode generator. References the QRious's options.
- Type:
String
- Default:
'canvas'
- Options:
'canvas'
and'img'
The tag of the component root element.
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Opera (latest)
- Edge (latest)
- Internet Explorer 9+
Maintained under the Semantic Versioning guidelines.