qrcode-react

a react component to generate QRCode with logo

  • Owner: cssivision/qrcode-react
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

qrcode-react

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

Installation

npm install qrcode-react

Usage

var React = require('react');
var ReactDOM = require('react-dom');
var QRCode = require('qrcode-react');

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

Available Props

prop, type, default value
-------------, ----------------------, -----------------------------------
value, string, http://facebook.github.io/react/
size, number, 128
bgColor, string (CSS color), "#FFFFFF"
fgColor, string (CSS color), "#000000"
logo, string (URL / PATH), logoWidth, number, size * 0.2
logoHeight, number, Proportional scaling to logoWidth

Main metrics

Overview
Name With Ownercssivision/qrcode-react
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2015-11-23 14:55:09
Pushed At2022-07-07 03:42:06
Last Commit At2018-01-10 10:12:30
Release Count3
Last Release Namev0.1.14 (Posted on )
First Release Namev0.1.11 (Posted on 2017-03-07 10:36:04)
用户参与
Stargazers Count153
Watchers Count5
Fork Count32
Commits Count57
Has Issues Enabled
Issues Count21
Issue Open Count13
Pull Requests Count6
Pull Requests Open Count2
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private