@mu-ui/mu-qrcode
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

mu-qrcode

qrcode vue component for vue 2.x by using node-qrcode

Installation

yarn add @mu-ui/mu-qrcode

Usage

import Qrcode from '@mu-ui/mu-qrcode'

Vue.component('qrcode', Qrcode)

<qrcode val="https://github.com/mu-ui/mu-ui/"></qrcode>

Options

val

Type: String

the url address you want to generate a qrcode

size

Type: Number Default: 128

size of the qrcode

margin

Type: Number Default: 2

Define how much wide the quiet zone should be

type

Type: String Default: canvas

canvas or img

dark

Type: String Default: #000

Color of dark module. Value must be in hex format (RGBA).

light

Type: String Default: #fff

Color of light module. Value must be in hex format (RGBA).

Readme

Keywords

Package Sidebar

Install

npm i @mu-ui/mu-qrcode

Weekly Downloads

9

Version

0.1.6

License

MIT

Unpacked Size

75.4 kB

Total Files

8

Last publish

Collaborators

  • jr93