UNPKG

react-responsive-3d-carousel

Version:
15 lines (14 loc) 587 B
export type SwipeDirection = 'vertical' | 'horizontal'; declare const useSwipe: ({ containerRef, swipeable, swipeDirection, slideNext, slidePrev, onSwipeStart, onSwipeEnd, onSwipeMove, }: { containerRef: React.RefObject<HTMLElement>; swipeable: boolean; swipeDirection: SwipeDirection; slideNext: () => void; slidePrev: () => void; onSwipeStart?: (event: TouchEvent) => void; onSwipeEnd?: (event: TouchEvent) => void; onSwipeMove?: (event: TouchEvent) => void; }) => { isSwiping: import("react").MutableRefObject<boolean>; }; export default useSwipe;