UNPKG

react-use-gesture

Version:

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

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