0.1.1 • Published 8 months ago
@1ohooks/use-vertical-swipe-minimum v0.1.1
minSwipe
(number): The minimum swipe distance required to trigger a swipe action (default is 50 pixels).onSwipeUp
(function): A callback function to be executed when a swipe up gesture is detected.onSwipeDown
(function): A callback function to be executed when a swipe down gesture is detected.
Here's an example of how to use useVerticalSwipeMinimum in your component: