react-swipe-button

1.0.1 • Public • Published

react-swipe-button

This Package is a swipe button for react

NPM JavaScript Style Guide

Install

npm install --save react-swipe-button

Demo

This is a demo of react-swipe-button

Usage

import React, { Component } from 'react'
 
import ReactSwipeButton from 'react-swipe-button'
 
class Example extends Component {
  render () {
    return (
      <ReactSwipeButton 
        text='SWIPE TO UNLOCK'
        color='#f00'
        onSuccess={onSucces}
      />
    )
  }
}

Props

text (Default will be 'SWIPE') The text that will display on the swipe button

color (Default will be '#444') The color of swipe button

onSuccess The function that will get called when a swipe is success

License

MIT © rinasm

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    226
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    226
  • 1.0.0
    1

Package Sidebar

Install

npm i react-swipe-button

Weekly Downloads

227

Version

1.0.1

License

MIT

Unpacked Size

39.7 kB

Total Files

6

Last publish

Collaborators

  • rinas