UNPKG

react-use-gesture

Version:

React hook for receiving gestures https://use-gesture.netlify.app

9 lines (8 loc) 430 B
import { UseDragConfig, Handler, EventTypes } from '../types'; /** * Drag hook. * * @param handler - the function fired every time the drag gesture updates * @param [config={}] - the config object including generic options and drag options */ export declare function useDrag<K = EventTypes['drag']>(handler: Handler<'drag', K>, config?: UseDragConfig | {}): (...args: any[]) => import("../types").ReactEventHandlers;