
Description
qrcode.vue is a Vue.js component for generating QR codes in Vue 2 and Vue 3 apps. Version 3.x targets Vue 3 and version 1.x stays on Vue 2. The component renders a QR code as canvas or SVG, and the SVG mode works with server-side rendering. Props control the encoded value, the size, the quiet-zone margin, the error correction level (L, M, Q or H), and the background and foreground colors. You can also place a logo image in the code, add gradient effects, and round the corners of each module with a radius setting from 0 to 0.5, where outer corners round while inner corners between dark modules stay sharp. It can be used in plain Vue apps, single-file components and with TypeScript. Documentation is available in English, Simplified Chinese, Traditional Chinese and Japanese.…
Highlights
- Supports Vue 2 (1.x) and Vue 3 (3.x)
- Renders as canvas or SVG, with SVG working in SSR
- Error correction levels L, M, Q and H
- Custom colors, logo image and gradient effects
- Rounded module corners with a radius setting
Ratings & Reviews
No ratings yet
Be the first to rate qrcode.vue.
People also visit
qrcode.vue FAQ
Which Vue versions does qrcode.vue support?
Both. Use version 3.x with Vue 3 and keep version 1.x for Vue 2.
Can it render SVG instead of canvas?
Yes. Set render-as to svg; the SVG output also works with server-side rendering. Canvas is the default.
Can I put a logo in the QR code?
Yes, through the image-settings prop.
What styling options are there?
Size, margin, background and foreground colors, gradients, and a radius prop from 0 to 0.5 that rounds the modules, up to fully circular.
Does it work with TypeScript?
Yes, the README includes a Vue 3 TypeScript usage example.
What are the best qrcode.vue alternatives?
Popular alternatives to qrcode.vue include @chenfengyuan/vue-qrcode, vue-qrcode-reader and vue-qrcode-reader. See all qrcode.vue alternatives


















