UNPKG

motion-v

Version:

<h1 align="center"> <img width="35" height="35" alt="Motion logo" src="https://github.com/user-attachments/assets/00d6d1c3-72c4-4c2f-a664-69da13182ffc" /><br />Motion for Vue</h1>

18 lines (17 loc) 569 B
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; /** * Variant to apply when the element is pressed. */ whilePress?: VariantLabels | VariantType; onPressStart?: PressEvent; onPress?: PressEvent; onPressCancel?: PressEvent; }