swipablereact
1.0.22 • Public • Published swipablereact
Install
npm install react swipablereact
Usage
Example
import React from 'react'
import ReactDOM from 'react-dom';
import SwipableComp from 'swipablereact';
class Swipe extends React.Component {
render() {
return (
<SwipableComp >
<div>1</div>
<div>2</div>
<div>3</div>
</ReactSwipe>
);
}
}
ReactDOM.render(
<Swipe />,
document.getElementById('app')
);
Props
index: ?Number
- Index
distance: ?Number
- width slide
espace: ?Number
-
height: ?Any
-
position: ?string
-
modif: ?Bool
-
resistance: ?Bool
-
iconLeft: ?Any
-
iconRigth: ?Any
-
childBgColor: ?String
-
contBgColor: ?String
-
decal: ?Number
-
navigation: ?Bool
-
vitesse: ?Number
- speed
onChangepourc: ?Func
- Callback function - (percent, end, speed)
Package Sidebar
Install
Weekly Downloads