Giter VIP home page Giter VIP logo

vue-qrcode's Introduction

vue-qrcode

Downloads Version

Qrcode component for Vue.js. It is based on QRious.

Table of contents

Main

dist/
├── vue-qrcode.js        (75 KB, UMD)
├── vue-qrcode.min.js    (18 KB, UMD, compressed)
├── vue-qrcode.common.js (75 KB, CommonJS)
└── vue-qrcode.esm.js    (75 KB, ES Module)

Getting started

Install

npm install @xkeshi/vue-qrcode

Usage

  • Browser: window.VueQrcode
  • CommonJS: var VueQrcode = require('@xkeshi/vue-qrcode')
  • ES2015: import VueQrcode from '@xkeshi/vue-qrcode'
Vue.component('qrcode', VueQrcode);
<qrcode value="Hello, World!" :options="{ size: 200 }"></qrcode>

⬆ back to top

Props

value

  • Type: String

The value of the qrcode.

options

  • Type: Object

The options for the qrcode generator. References the QRious's options.

tag

  • Type: String
  • Default: 'canvas'
  • Options: 'canvas' and 'img'

The tag of the component root element.

Browser support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Opera (latest)
  • Edge (latest)
  • Internet Explorer 9+

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Xkeshi

⬆ back to top

vue-qrcode's People

Contributors

fengyuanchen avatar

Watchers

James Cloos avatar ydx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.