Swipe to reveal or perform an action.
npm install react-swipe-actionSwipe to reveal or perform an action. Try interactive Storybook demo.
``bash`
npm install react-swipe-action
`jsx
import { SwipeAction } from 'react-swipe-action'
import 'react-swipe-action/dist/index.css'
const App = () => {
return (
endAction={{
content: (
type="button"
onClick={() => { alert('Right action') }}
>
Right action
),
onLongSwipe: () => { alert('Right action') },
background: