react.qrcode

React component to generate QRCode with logo

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react.qrcode
152151.0.25 years ago5 years agoMinified + gzip package size for react.qrcode in KB

Readme

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

prop | type | default value -------------|----------------------|----------------------------------- value | string | http://facebook.github.io/react/ size | number | 128 bgColor | string (CSS color) | "#FFFFFF" fgColor | string (CSS color) | "#000000" logo | string (URL / PATH)| logoWidth | number | size * 0.2 logoHeight | number | Proportional scaling to logoWidth