1.0.1 • Published 3 years ago

@pacta-app/qrcode-react v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

qrcode-react

This is a fork of cssivision/qrcode-react with the only intention to remove hard coded style and attributes. The stiling should be done with selectors in css files and must not be implemented hard coded.

A React component to generate QRCode with logo. Inspired by zpao/qrcode.react, also support chinese.

Installation

npm install pacta-app/qrcode-react

Usage

var React = require("react");
var ReactDOM = require("react-dom");
var QRCode = require("pacta-app/qrcode-react");

ReactDOM.render(<QRCode value="http://facebook.github.io/react/" />, mountNode);

Available Props

proptypedefault value
valuestringhttp://facebook.github.io/react/
sizenumber128
bgColorstring (CSS color)"#FFFFFF"
fgColorstring (CSS color)"#000000"
logostring (URL / PATH)
logoWidthnumbersize * 0.2
logoHeightnumberProportional scaling to logoWidth
1.0.1

3 years ago

1.0.0

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago