@hakuna-matata-ui/hooks
Version:
React hooks for Chakra components
12 lines • 477 B
TypeScript
import { PanEventHandler } from "@hakuna-matata-ui/utils";
import React from "react";
export interface UsePanGestureProps {
onPan?: PanEventHandler;
onPanStart?: PanEventHandler;
onPanEnd?: PanEventHandler;
onPanSessionStart?: PanEventHandler;
onPanSessionEnd?: PanEventHandler;
threshold?: number;
}
export declare function usePanGesture(ref: React.RefObject<HTMLElement>, props: UsePanGestureProps): void;
//# sourceMappingURL=use-pan-gesture.d.ts.map