motion-v
Version:
<p align="center"> <img width="100" height="100" alt="Motion logo" src="https://user-images.githubusercontent.com/7850794/164965523-3eced4c4-6020-467e-acde-f11b7900ad62.png" /> </p> <h1 align="center">Motion for Vue</h1>
22 lines (21 loc) • 671 B
TypeScript
import { VariantType } from '../../../types';
import { EventInfo } from 'framer-motion';
import { VariantLabels } from 'motion-dom';
export type PressEvent = (event: PointerEvent, info: EventInfo) => void;
export interface PressProps {
/**
* If `true`, the press gesture will attach its start listener to window.
*/
globalPressTarget?: boolean;
/**
* @deprecated Use `whilePress` instead.
*/
press?: VariantLabels | VariantType;
/**
* Variant to apply when the element is pressed.
*/
whilePress?: VariantLabels | VariantType;
onPressStart?: PressEvent;
onPress?: PressEvent;
onPressCancel?: PressEvent;
}