react-google-qrcode

1.0.3 • Public • Published

React Google QR Code

Version React Downloads License

react-google-qrcode is a React Component to generate a QR code via Google Chart API. screen shot

Installation

$ yarn add react-google-qrcode
or
$ npm install --save react-google-qrcode

Usage

import React, { Component } from 'react';
import QRCode from 'react-google-qrcode';

class App extends Component {
  render() {
    return (
        <div>
          <QRCode
            data="https://www.google.com"
            size={130}
            framed
          />
        </div>
    );
  }
}

Props

Prop Type Required Description Default
data String No The data to encode -
size Number No Image size in pixels (width x height). Min value: 30, Max value: 547 130
framed Boolean No Adds a frame to the image false

Demo

You want to see some examples? Go to Online Demo

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    299
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    299
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i react-google-qrcode

Weekly Downloads

301

Version

1.0.3

License

MIT

Unpacked Size

954 kB

Total Files

10

Last publish

Collaborators

  • iamgutz