# FormidableLabs/react-swipeable

React swipe event handler hook

Repository: https://github.com/FormidableLabs/react-swipeable
Canonical: https://ross.abutalabs.com/products/react-swipeable
Homepage: https://commerce.nearform.com/open-source/react-swipeable
Language: TypeScript
License: MIT
License Family: permissive
Topics: swipe, touch, swipeable, mobile, react, hook, react-hooks
Last push: 2024-12-23T19:01:23+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4344, "days_push": 618, "days_rel": 667, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2113, forks 149 (observed 2026-08-28T04:06:14.603609+00:00)

## What it is
react-swipeable is a lightweight, customizable React hook (useSwipeable) that provides swipe event handling for any HTML element. It exposes detailed swipe event data so developers can build touch interactions like carousels and swipeable components.

## Use cases
- add swipe gestures to a react component
- build a touch-enabled image carousel in react
- detect swipe direction on mobile web
- handle touch swipe events with a react hook
- make a div swipeable on mobile browsers
- implement swipe-to-navigate slides

## When to choose
- you need a small, focused hook for swipe/touch handling in React
- you want to attach swipe handlers to any HTML element without a full gesture library
- you're building carousels or swipeable UI in a React web app

## When to avoid
- you need multi-touch pinch/zoom or complex gesture recognition
- you're not using React
- you need native mobile app gesture handling rather than browser touch events

## Facets
- artifact type: library
- maturity: active
- function: ui-components, frontend-framework
- domain: web-development, frontend, mobile-development
- platform: browser, cross-platform
- tags: react, react-hooks, swipe, touch-events, touch-gestures, mobile-web, typescript, nodejs

## Member repositories
- FormidableLabs/react-swipeable (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:14.603609+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:53:30.206636+00:00, confidence not recorded.
  - readme: https://github.com/FormidableLabs/react-swipeable (fetched 2026-08-28T04:06:14.603609+00:00, sha 11beeeb1b69c)
  - homepage: https://commerce.nearform.com/open-source/react-swipeable (fetched 2026-08-29T10:33:57.729067+00:00, sha 50b60ff40a42)
  - site_page: https://nearform.com/open-source/react-swipeable/docs (fetched 2026-08-29T10:33:57.732271+00:00, sha 0ec2d6b8b7cd)
  - site_page: https://nearform.com/open-source/react-swipeable/docs/examples/simple-carousel (fetched 2026-08-29T10:33:57.734760+00:00, sha 63141a28aa65)
  - registry_npm: https://registry.npmjs.org/react-swipeable (fetched 2026-08-29T10:33:57.737191+00:00, sha fd275d40559e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
