framer-motion
Version:
An open source and production-ready motion library for React on the web
26 lines (25 loc) • 637 B
TypeScript
import { TargetAndTransition } from "../types";
import { MotionProps, VariantLabels } from "../motion/types";
import { VisualElement } from "../render/types";
/**
* @public
*/
export interface FocusHandlers {
/**
* Properties or variant label to animate to while the focus gesture is recognised.
*
* @motion
*
* ```jsx
* <motion.input whileFocus={{ scale: 1.2 }} />
* ```
*/
whileFocus?: VariantLabels | TargetAndTransition;
}
/**
*
* @param props
* @param ref
* @internal
*/
export declare function useFocusGesture({ whileFocus }: MotionProps, visualElement: VisualElement): void;