{"library":"vue-use-gesture","type":"library","category":null,"description":"@vueuse/gesture is a comprehensive collection of Vue Composables designed to provide robust and interactive gesture support for Vue applications. It offers a suite of hooks for various pointer and touch gestures, including `useDrag`, `useMove`, `useHover`, `useScroll`, `useWheel`, `usePinch`, and a generic `useGesture` for handling multiple interactions simultaneously. The library is currently stable at version `2.0.0` (last published approximately two years ago) and is an active part of the broader VueUse ecosystem. Its key differentiators include seamless compatibility with both Vue 2 and Vue 3 environments via `vue-demi`, offering both composable function-based and directive-based (e.g., `v-drag`) APIs. It is a direct port of the well-known `react-use-gesture` library, bringing similar declarative and powerful animation possibilities to the Vue ecosystem, and is explicitly designed to integrate smoothly with animation libraries like `@vueuse/motion`.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","vue","editor","code editor","prism","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-use-gesture","imports":["import { useDrag } from '@vueuse/gesture'","import { useGesture } from '@vueuse/gesture'","import { DragDirective } from '@vueuse/gesture'; app.directive('drag', DragDirective);","import { usePinch } from '@vueuse/gesture'"]},{"cmd":"yarn add vue-use-gesture","imports":[]},{"cmd":"pnpm add vue-use-gesture","imports":[]}],"homepage":"https://vueuse.org/gesture","github":"https://github.com/koca/vue-use-gesture","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-use-gesture","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/vue-use-gesture/compatibility"}}