React Swipe Event Handler Hook

JSON →
library 7.0.2 ·javascript
verified May 27, 2026

React Swipeable is a lightweight React hook, `useSwipeable`, designed to easily add swipe and touch event handling capabilities to any React component. It abstracts away the complexities of touch events, providing a consistent API for detecting various swipe directions (up, down, left, right), tap events, and customizable thresholds for swipe detection via the `delta` prop. The library is currently at version 7.0.2 and is actively maintained by FormidableLabs, with regular updates to support new React versions (e.g., React 19) and introduce new features like `swipeDuration` and `onSwipeStart`. Its key differentiators include its hook-based API, fine-grained control over touch event options, and a focus on performance by leveraging passive event listeners by default, addressing Lighthouse performance issues related to touch events.

total hits 18
actors 7 distinct systems
last hit 1d ago human
GPTBot
5
ChatGPT-User
4
Script
1
ClaudeBot
1
Search engines
3
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇸🇬 Singapore