DEV Community

Naim Malek
Naim Malek

Posted on

ReactJs Qrcode generator library

reactjs-qrcode-generator

reactjs-qrcode-generator is a clean and simple QRcode generator library for reactJS.

NPM JavaScript Style Guide

Install

npm install --save reactjs-qrcode-generator
Enter fullscreen mode Exit fullscreen mode

Demo https://naimmalek.github.io/reactjs-qrcode-generator-demo/

Usage

import React, { Component } from 'react'

import {ReactQrcode} from 'reactjs-qrcode-generator'

class Example extends Component {
  render() {
    return <ReactQrcode qrvalue={qrvalue} size={size} level={1} />
  }
}
Enter fullscreen mode Exit fullscreen mode

Parameters

Attribute Type Default Description
level Number 1 QR ECC level (1, 2, 3, 4)
qrvalue String This is Qrcode Your String
size Number 200 (Width/Height value)

Ecc level description

Level Description
1 low
2 medium
3 quartile
4 high

License

MIT © naimmalek

Top comments (0)