# pmndrs/use-gesture

👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.

Repository: https://github.com/pmndrs/use-gesture
Canonical: https://ross.abutalabs.com/products/use-gesture
Homepage: https://use-gesture.netlify.app
Language: TypeScript
License: MIT
License Family: permissive
Topics: gestures, hooks, drag, pinch, zoom, wheel, scroll, react
Last push: 2024-07-15T14:21:52+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3085, "days_push": 779, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9622, forks 335 (observed 2026-08-28T04:10:36.392769+00:00)

## What it is
@use-gesture is a TypeScript library for binding rich mouse and touch gestures (drag, pinch, zoom, wheel, scroll) to React components or vanilla JavaScript elements. It provides hook-based and framework-free APIs that pair well with animation libraries like react-spring.

## Use cases
- add drag interactions to react components
- implement pinch to zoom on mobile web
- handle touch gestures in vanilla javascript
- build swipeable card stacks in react
- bind wheel and scroll events to elements
- create draggable lists with react hooks

## When to choose
- you need unified mouse and touch gesture handling in React or vanilla JS
- you want gesture state data to feed into an animation library like react-spring
- you need configurable drag, pinch, zoom, wheel, and scroll interactions with minimal code

## When to avoid
- you need a full drag-and-drop library with sortable lists and file drop zones
- your project doesn't use React or vanilla DOM manipulation
- you only need simple click or hover events without gesture recognition

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation, frontend-framework
- domain: web-development, frontend, cross-platform
- platform: browser
- tags: gestures, react-hooks, drag-and-drop, touch-events, pinch-zoom, vanilla-js, nodejs, web-server

## Member repositories
- pmndrs/use-gesture (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:36.392769+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-29T17:21:22.074673+00:00, confidence not recorded.
  - readme: https://github.com/pmndrs/use-gesture (fetched 2026-08-28T04:10:36.392769+00:00, sha 43eb6d6bcfe0)
  - homepage: https://use-gesture.netlify.app (fetched 2026-08-29T08:21:38.450796+00:00, sha cdce695dc917)
- Data as of 2026-08-30T08:39:29.467469+00:00.
