UNPKG

motion

Version:

The Motion library for the web

5 lines (4 loc) 474 B
import { HTMLProps } from "react"; import { AnimationOptionsWithOverrides, MotionKeyframes } from "../../dom/types"; import { AnimatedProps, AnimationContextProps, PoseActiveState } from "../types"; export declare function usePress(target: MotionKeyframes, options: AnimationOptionsWithOverrides, { press, onPointerDown, poses }: (AnimatedProps & HTMLProps<any>) | undefined, { press: inheritedPress }: AnimationContextProps, isPoseActive: PoseActiveState): HTMLProps<any>;