react-use-gesture
Version:
React hook for receiving gestures https://use-gesture.netlify.app
9 lines (8 loc) • 446 B
TypeScript
import { UseScrollConfig, Handler, EventTypes } from '../types';
/**
* Scroll hook.
*
* @param handler - the function fired every time the scroll gesture updates
* @param [config={}] - the config object including generic options and scroll options
*/
export declare function useScroll<K = EventTypes['scroll']>(handler: Handler<'scroll', K>, config?: UseScrollConfig | {}): (...args: any[]) => import("../types").ReactEventHandlers;