Skip to content

Vue QRCode Image

A Vue component for QR code generation.

Installation

Install vue-qrcode-image with your favorite package manager:

sh
npm i vue-qrcode-image
sh
yarn add vue-qrcode-image
sh
pnpm i vue-qrcode-image
sh
bun add vue-qrcode-image

Usage

Basic

vue
<script lang="ts" setup>
import { ref } from 'vue';
import QrcodeImage from 'vue-qrcode-image';

const qrcode = ref('https://www.npmjs.com/search?q=vue-qrcode-image');
</script>

<template>
  <QrcodeImage :value="qrcode" />
</template>

Size

  • Type: number
  • Default: 2
html
<QrcodeImage :value="qrcode" :size="4" />

Margin

  • Type: number
  • Default: 8
html
<QrcodeImage :value="qrcode" :margin="6" />

Released under the MIT License.