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>
12 lines (11 loc) • 379 B
TypeScript
import { VariantType } from '../../../types';
import { EventInfo, VariantLabels } from 'motion-dom';
export type HoverEvent = (event: MouseEvent, info: EventInfo) => void;
export interface HoverProps {
/**
* Variant to apply when the element is hovered.
*/
whileHover?: VariantLabels | VariantType;
onHoverStart?: HoverEvent;
onHoverEnd?: HoverEvent;
}