An open API service indexing awesome lists of open source software.

https://github.com/tobitsoftware/chayns-swipeable

A wrapper component that reveals contextual actions on swipe.
https://github.com/tobitsoftware/chayns-swipeable

chayns chayns-components mobile react swipe

Last synced: 3 months ago
JSON representation

A wrapper component that reveals contextual actions on swipe.

Awesome Lists containing this project

README

        

# chayns-swipeable

A wrapper component that reveals contextual actions on swipe.

## Installation

```bash
npm install chayns-swipeable framer-motion
```

## Usage

```ts
import { Swipeable } from "chayns-swipeable";
import "chayns-swipeable/dist/index.css";
import { Icon } from "chayns-components";

const MyComponent = () => (
,
action: () => alert("Deleted!"),
},
]}
rightActions={
[
// Same as `leftActions`
]
}
>
Anything goes here...

);
```