UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

14 lines (13 loc) 441 B
import { RefObject } from 'react'; import { UseSwipeOptions } from './useSwipe'; /** * A shortcut to useSwipe (with horizontal options) */ declare const useHorizontalSwipe: <TElement extends HTMLElement>(ref?: RefObject<TElement>, options?: UseSwipeOptions) => { swiping: boolean; direction?: import("./shared/swipeUtils").Direction; alphaX: number; alphaY: number; count: number; }; export default useHorizontalSwipe;