0.1.2 • Published 7 years ago

react-qart v0.1.2

Weekly downloads
23
License
MIT
Repository
github
Last release
7 years ago

react-qart

This is a simple implementation of QArt as React Component. You can visit the demo.

Usage

First of all install react-qart via npm or yarn

npm install react-qart

or

yarn add react-qart

Now you can use it in your React or Preact project(with preact-compat).

import React, { Component} from 'react';
import QArt from 'react-qart';

export default class App extends Component {
  render() {
    return (
      <div>
        <h1>merhaba</h1>
        <QArt
          value="I'm a kitten"
          imagePath="./kidden.jpg"
          filter="color"
        />
      </div>
    )
  }
}

result

Props

FieldTypeDescriptionDefault
valueStringThe data of the QR code.Required
imagePathStringSelf hosted image url or relative path to image urlRequired
filterStringDefine an image filter. threshold or colorthreshold

Limitations

  • You must use relative path of an image
  • You cannot change the size of the generated qr
0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago