Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (25 loc) · 749 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 749 Bytes

qrcode.react

A React component to generate QR codes.

Installation

npm install qrcode.react

Usage

var React = require('react');
var QRCode = require('qrcode.react');

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'

LICENSE ISC