1.0.2 • Published 2 years ago

react-image-charts-qrcode v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

PropTypeRequiredDescriptionDefault
dataStringNoThe data to encode-
sizeNumberNoImage size in pixels (width x height). Min value: 30, Max value: 547130
framedBooleanNoAdds a frame to the imagefalse

Demo

You want to see some examples? Go to Online Demo