react-image-charts-qrcode

1.0.2 • Public • Published

React Image Charts QR Code

react-image-charts-qrcode is a React Component to generate a QR code via Image Charts API. screen shot

Installation

$ yarn add react-image-charts-qrcode
or
$ npm install --save react-image-charts-qrcode

Usage

import React, { Component } from 'react';
import QRCode from 'react-image-charts-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

Package Sidebar

Install

npm i react-image-charts-qrcode

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

873 kB

Total Files

11

Last publish

Collaborators

  • amin_rafaey