0.2.0 • Published 5 years ago

react-cashid v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

CashID React component

React component to generate QR code and badgerwallet button using CashID

badgercashid

Installation

grab from NPM

npm i react-cashid

Usage

  import CashId from 'react-cashid';

  <CashId
    domain="domain.com"
    path="/api/test"
    action="login"
    data="newsletter"
    metadata={{
      required: {
        identity: ['name', 'family'],
        position: ['country'],
        contact: ['email']
      },
      optional: {
        identity: ['age', 'gender'],
        position: ['city']
      }
    }}
    color="orange"
    qr={true}
    callback={callbackFunction}
  />

action, data, and metadata are optional.

Read more about the CashID Specification.

Required

you must be using either the PHP or Javascript library for CashID on your backend.

development

npm run start and browse http://localhost:3001

0.2.0

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago