react-qr-component
v0.7.3
Published
React component to generate QR codes
Maintainers
Readme
qrcode.react
A React component to generate QR codes. forked from zpao/qrcode.react
Installation
npm i -S https://github.com/nicholaspsmith/qrcode.reactUsage
import React from 'react'
import QRCode from 'react-qr-component'
React.render(
<QRCode value="http://facebook.github.io/react/" />,
mountNode
);Available Props
prop | type | default value
----------|----------------------|--------------
value | string |
size | number | 128
bgColor | string (CSS color) | "#FFFFFF"
fgColor | string (CSS color) | "#000000"
level | string ('L' 'M' 'Q' 'H') | 'L'
className|string | ``
