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.
- Host: GitHub
- URL: https://github.com/tobitsoftware/chayns-swipeable
- Owner: TobitSoftware
- License: mit
- Created: 2021-05-27T15:48:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-08T10:52:28.000Z (about 3 years ago)
- Last Synced: 2025-02-20T00:28:21.706Z (3 months ago)
- Topics: chayns, chayns-components, mobile, react, swipe
- Language: TypeScript
- Homepage:
- Size: 1.35 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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...
);
```