@shift3/swipe-left-util
v0.0.1
Published
React component wrapping around mapped items needing swipe to delete functionality. For prototyping only. Currently in development.
Downloads
2
Readme
swipe-left-util
Install
npm install --save @shift3/swipe-left-util
Usage
import React, { Component } from "react";
import { SwipeLeftUtil } from "swipe-left-util";
class Example extends Component {
render(props) {
return <SwipeLeftUtil hasDelete>{props.children}</SwipeLeftUtil>;
}
}
Options
Add a property of hasSave
, hasArchive
, or hasDelete
to enable buttons
License
MIT © @mhigley