@amaui/ui-react
Version:
UI for React
19 lines (18 loc) • 474 B
TypeScript
export interface IOptionsUseSwipe {
open?: boolean;
min?: number;
direction?: 'top' | 'left' | 'right' | 'bottom';
touchAnywhere?: boolean;
flick?: boolean;
flickTreshold?: number;
}
export interface IResponseUseSwipe {
value?: number;
valuePercentage?: number;
position?: string;
}
declare const useSwipe: {
(element: HTMLElement, options_?: IOptionsUseSwipe): IResponseUseSwipe;
displayName: string;
};
export default useSwipe;