rc-qrcode
v1.0.2
Published
QRCode Component for React
Downloads
23
Readme
rc-qrcode
QRCode Component for React.
Install
npm install rc-qrcode --save
Usage
const React = require('react');
const ReactDOM = require('react-dom');
const QRCode = require('rc-qrcode');
ReactDOM.render(<QRCode renderer="canvas" content="http://onbing.com" scale="10" margin="20" background="white" foreground="green" />, container);
Props
Option | Type | Default | Description ------- | ---- | ------- | ----------- renderer | enum("canvas", "svg", "auto") | "auto" | renderer for draw image scale | number | 4 | block size margin | number | 20 | image margin background | string | "white" | background color foreground | string | "black" | foreground color