File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- This example was bootstrapped with [ Create React App ] ( https://github.com/facebook/create-react-app ) .
1+ # reactjs-qrcode-generator
22
3- It is linked to the reactjs-qrcode-generator package in the parent directory for development purposes .
3+ > reactjs-qrcode-generator is a clean and simple QRcode generator library for reactJS .
44
5- You can run ` npm install ` and then ` npm start ` to test your package.
5+ [ ![ NPM] ( https://img.shields.io/npm/v/reactjs-qrcode-generator.svg )] ( https://www.npmjs.com/package/reactjs-qrcode-generator ) [ ![ JavaScript Style Guide] ( https://img.shields.io/badge/code_style-standard-brightgreen.svg )] ( https://standardjs.com )
6+
7+ ## Install
8+
9+ ``` bash
10+ npm install --save reactjs-qrcode-generator
11+ ```
12+
13+ ## Usage
14+
15+ ``` tsx
16+ import React , { Component } from ' react'
17+
18+ import ReactQrcode from ' reactjs-qrcode-generator'
19+
20+ class Example extends Component {
21+ render() {
22+ return <ReactQrcode qrvalue = { qrvalue } size = { size } level = { 1 } />
23+ }
24+ }
25+ ```
26+
27+ ## Parameters
28+
29+ | Attribute | Type | Default | Description |
30+ | ------------- | -------------| -----| ------------|
31+ | level | Number | 1 | QR ECC level (1, 2, 3, 4) |
32+ | qrvalue | String | This is Qrcode | Your String |
33+ | size | Number | 200 | (Width/Height value) |
34+
35+ ### Ecc level description
36+
37+ | Level | Description |
38+ | -------------| ------------ |
39+ | 1 | low |
40+ | 2 | medium |
41+ | 3 | quartile |
42+ | 4 | high |
43+
44+
45+ ## License
46+
47+ MIT © [ naimmalek] ( https://github.com/naimmalek )
You can’t perform that action at this time.
0 commit comments