UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

7 lines 311 B
interface LongPressOptions { onClick?: (e: MouseEvent | TouchEvent) => void; duration?: number; } declare const useOnLongPress: (callback: () => void, { onClick, duration }?: LongPressOptions) => (node: HTMLElement | null) => void; export { useOnLongPress }; //# sourceMappingURL=useOnLongPress.d.ts.map