1.0.2 • Published 7 years ago

react.qrcode v1.0.2

Weekly downloads
88
License
MIT
Repository
github
Last release
7 years ago

qrcode-react

A React component to generate QRCode with logo. Compatible with react 16

Installation

npm install react.qrcode

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