Gathering detailed insights and metrics for react-swipe-me
Gathering detailed insights and metrics for react-swipe-me
Gathering detailed insights and metrics for react-swipe-me
Gathering detailed insights and metrics for react-swipe-me
npm install react-swipe-me
Typescript
Module System
Node Version
NPM Version
53
Supply Chain
72.1
Quality
74.1
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
1,107
Last Day
1
Last Week
3
Last Month
15
Last Year
145
1 Stars
11 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jun 15, 2020
Latest Version
0.0.2
Package Id
react-swipe-me@0.0.2
Unpacked Size
18.35 kB
Size
4.51 kB
File Count
5
NPM Version
6.13.4
Node Version
12.16.1
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
0%
3
Compared to previous week
Last Month
114.3%
15
Compared to previous month
Last Year
-45.1%
145
Compared to previous year
1
3
This is a simple ReactJS library that solves your problem with creating swipeable menus, clipboards and everything you want. With this library you can easly create component that is swipeable from every screen edge. All you have to do is install library, import it and create SwipeMe component with your children and many props.
SwipeMe component can be controlled by click on desktop and fully swiped by touching on your touch devices.
There are two different ways to install SwipeMe
with Yarn:
1yarn add react-swipe-me
or with NPM:
1npm i react-swipe-me
1import SwipeMe from 'react-swipe-me' 2 3const ExampleComponent = () => ( 4 <div className="application"> 5 <SwipeMe position="left" hide handle={20}> 6 <div className="children"></div> 7 </SwipeMe> 8 </div> 9);
SwipeMe component can get 3 different props:
name | type | default | description |
---|---|---|---|
position | "top" "bottom" "right" "left" | bottom | define side where component will be generated |
handle | number | 20 | define size of component that will be visible when the component is hidden |
hide | boolean | by this prop you can manually control state of the component |
more in future...
No vulnerabilities found.