Skip to content

HJ29/vue3-qr-reader

Repository files navigation

vue3-qr-reader

Vue 3 qr reader.

refactor for vue 3.

Demo

Demo

Demo Code

Install

yarn add vue3-qr-reader
npm i --save vue3-qr-reader

Register Global Component

import { createApp } from 'vue';
import App from './App.vue'
import QrReader from 'vue3-qr-reader';

const app = createApp(App);
app.use(QrReader);
app.mount('#app')

Register Local Component

import { QrStream, QrCapture, QrDropzone } from 'vue3-qr-reader';

export default {
  components: {
    QrStream,
    QrCapture,
    QrDropzone
  },
};

Project setup

yarn

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Customize configuration

See Configuration Reference.