@use-gesture
React hook for handling mouse, touch and pointer gestures.
Animation and motion npm MIT
Used in agent projects
23
0.2% of 12,697 public repos built with AI coding agents
Rank in animation and motion
#23 of 28
by use in those projects
Downloads
7.1M
npm, last 7 days, @use-gesture/react
GitHub stars
9,622
last push Jul 15, 2024
How @use-gesture is used
@use-gesture is a dependency in 23 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #23 of 28 in animation and motion. The most used alternative there is Framer Motion. Projects that use it most often also use Tailwind CSS (91.3%), React (95.7%), clsx (60.9%).
Often used with @use-gesture
| Tailwind CSS | 91.3% of @use-gesture projects · 2.6× more than average |
|---|---|
| React | 95.7% of @use-gesture projects · 2.2× more than average |
| clsx | 60.9% of @use-gesture projects · 3.4× more than average |
| Framer Motion | 52.2% of @use-gesture projects · 3.9× more than average |
| Tailwind Merge | 56.5% of @use-gesture projects · 3.4× more than average |
| Sonner | 43.5% of @use-gesture projects · 5.4× more than average |
| date-fns | 43.5% of @use-gesture projects · 5.1× more than average |
| Lucide React | 56.5% of @use-gesture projects · 2.8× more than average |
By coding agent
| Cursor | 0.4% of projects set up for it |
|---|---|
| Claude Code | 0.3% of projects set up for it |
Share of public repos configured for each agent that list @use-gesture as a dependency.
Install
| Package | npm install @use-gesture/react |
|---|---|
| Packages counted | @use-gesture/react, @use-gesture/vanilla |
| Main stacks | Next.js (12), TypeScript / JavaScript (10), Python (1) |
| Example projects | sunflower-land/sunflower-land, ngxtension/ngxtension-platform, 1600822305/AetherLink, MatthewGreenberg/shoe-finder, GooseFX1/gfx-web-app |
Alternatives to @use-gesture
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Framer Motion npm Simple and powerful animation library for React components. |
1,703 (13.4%) | 50.1M | 33.9K | MIT |
| Tailwind CSS Animate npm Tailwind CSS plugin adding ready-to-use animation utilities. |
945 (7.4%) | 20.4M | — | MIT |
| tw-animate-css npm Tailwind CSS v4.0 compatible animation plugin replacement. |
851 (6.7%) | 39.6M | 806 | MIT |
| Embla Carousel npm Lightweight carousel component with fluid motion and precise swipe handling for React. |
605 (4.8%) | 30.4M | 8,439 | MIT |
| GSAP npm Professional animation library for high-performance CSS, SVG, canvas and React animations. |
599 (4.7%) | 5.9M | 29K | Standard 'no charge' license: https://gsap.com/standard-license. |
| Motion npm Animation library for JavaScript and React with simple, powerful motion primitives. |
416 (3.3%) | 24.4M | 33.9K | MIT |
| Lenis npm Smooth scrolling library that enhances page scroll experiences with physics-based animations. |
193 (1.5%) | 1.8M | 16.3K | MIT |
| React Native Reanimated npm High-performance animation library for React Native with worklet support. |
129 (1.0%) | 9.3M | 11K | MIT |