rc-qrcode
QRCode Component for React.
Install
npm install rc-qrcode --save
Usage
const React = ;const ReactDOM = ;const QRCode = ; ReactDOM;
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 |