🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

react.qrcode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react.qrcode

React component to generate QRCode with logo

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

qrcode-react

A React component to generate QRCode with logo. Compatible with react 16

Installation

npm install react.qrcode

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

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

Keywords

react

FAQs

Package last updated on 09 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts