0.1.17 • Published 6 years ago

qrcode-react-events v0.1.17

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

qrcode-react

A React component to generate QRCode with logo. Inspired by zpao/qrcode.react, also support chinese.

Installation

npm install qrcode-react

Usage

var React = require('react');
var ReactDOM = require('react-dom');
var QRCode = require('qrcode-react');

ReactDOM.render(
  <QRCode value="http://facebook.github.io/react/" />,
  mountNode
);

Available Props

proptypedefault value
valuestringhttp://facebook.github.io/react/
sizenumber128
bgColorstring (CSS color)"#FFFFFF"
fgColorstring (CSS color)"#000000"
logostring (URL / PATH)
logoWidthnumbersize * 0.2
logoHeightnumberProportional scaling to logoWidth
onClickfunction
classNamestring
0.1.17

6 years ago

0.1.16

6 years ago