0.7.3 • Published 7 years ago
react-qr-component v0.7.3
qrcode.react
A React component to generate QR codes. forked from zpao/qrcode.react
Installation
npm i -S https://github.com/nicholaspsmith/qrcode.react
Usage
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 |
|