UNPKG

beautiful-react-hooks

Version:

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

11 lines (10 loc) 458 B
import { type RefObject } from 'react'; import { type UseSwipeOptions } from './useSwipe'; /** * A shortcut to useSwipe (with vertical options) * @param ref * @param options * @return {{alpha: number, count: number, swiping: boolean, direction: null}} */ declare const useVerticalSwipe: <TElement extends HTMLElement>(ref?: RefObject<TElement> | undefined, options?: UseSwipeOptions) => import("./useSwipe").SwipeState; export default useVerticalSwipe;