hoxa
Version:
A comprehensive collection of 100+ production-ready React hooks for state management, UI effects, forms, animations, and more. Carefully curated and optimized for performance and developer experience.
9 lines (8 loc) • 359 B
TypeScript
export declare function useLongPress(callback: () => void, duration?: number): {
onMouseDown: (e: React.MouseEvent | React.TouchEvent) => void;
onMouseUp: () => void;
onMouseLeave: () => void;
onTouchStart: (e: React.MouseEvent | React.TouchEvent) => void;
onTouchEnd: () => void;
onTouchMove: (e: MouseEvent | TouchEvent) => void;
};