react-snapcode

1.1.1 • Public • Published

react-snapcode (npm)

npm version

React Snapcode Component

Install

$ npm install react-snapcode

Usage (in code)

import Snapcode from 'react-snapcode';
<Snapcode username="TestUsername"/>

Examples

import Snapcode from 'react-snapcode';
 
<Snapcode
    username="TestSnapchatUsername"
    width="500px"
    height="500px"
    dotsColor="#FF0000"
    backgroundColor="#0000FF"
    ghostColor="#008000"
/>

Features

  • Username props is required.
  • Width, height, backgroundColor, ghostColor, dotsColor are optional.
  • Height and width default is 320x320.

Package Sidebar

Install

npm i react-snapcode

Weekly Downloads

3

Version

1.1.1

License

MIT

Last publish

Collaborators

  • ortee