UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

19 lines (18 loc) 846 B
import { Point } from "../../utils/index.js"; import { DataAttributes, HTMLAttributes, RefAttributes, RefObject } from "react"; //#region src/hooks/use-pan-event/index.d.ts interface PanEventProps { threshold?: number; onEnd?: (ev: PointerEvent, point: Point, rect: DOMRect) => void; onMove?: (ev: PointerEvent, point: Point, rect: DOMRect) => void; onStart?: (ev: PointerEvent, point: Point, rect: DOMRect) => void; } interface Props<Y extends HTMLElement> extends DataAttributes, HTMLAttributes<Y>, RefAttributes<Y> {} declare const usePanEvent: <Y extends HTMLElement>({ threshold, ...rest }?: PanEventProps) => [RefObject<null | Y>, (props?: Props<Y>) => Props<Y>]; type UsePanEventReturn = ReturnType<typeof usePanEvent>; //#endregion export { PanEventProps, UsePanEventReturn, usePanEvent }; //# sourceMappingURL=index.d.ts.map