react-swipe-button
Version:
This Package is a swipe button for Web / Mobile
51 lines (34 loc) • 1.07 kB
Markdown
> This Package is a swipe button for react
[](https://www.npmjs.com/package/react-swipe-button) [](https://standardjs.com)
```bash
npm install --save react-swipe-button
```
This is a [demo](http://react-swipe-button.rinas.in/) of react-swipe-button
```jsx
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}
/>
)
}
}
```
**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
MIT © [rinasm](https://github.com/rinasm)