UNPKG

beautiful-react-hooks

Version:

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

8 lines (7 loc) 353 B
import { type RefObject } from 'react'; import { type UseSwipeOptions } from './useSwipe'; /** * A shortcut to useSwipe (with horizontal options) */ declare const useHorizontalSwipe: <TElement extends HTMLElement>(ref?: RefObject<TElement> | undefined, options?: UseSwipeOptions) => import("./useSwipe").SwipeState; export default useHorizontalSwipe;