{"library":"react-swipeable","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"7.0.2","tags":["javascript","react swipe","react touch","react hook","touch","swipe","swipeable","react","hook","typescript"],"install":[{"cmd":"npm install react-swipeable","imports":["import { useSwipeable } from 'react-swipeable';","import { type SwipeEventData } from 'react-swipeable';","import { type SwipeableProps } from 'react-swipeable';"]},{"cmd":"yarn add react-swipeable","imports":[]},{"cmd":"pnpm add react-swipeable","imports":[]}],"homepage":"https://stack.formidable.com/react-swipeable/","github":"https://github.com/FormidableLabs/react-swipeable","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-swipeable","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-swipeable/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}