UNPKG

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>

17 lines (16 loc) 831 B
import { MotionState } from '../state/motion-state'; import { IProjectionNode } from 'framer-motion'; import { Ref } from 'vue'; export declare const injectMotion: <T extends MotionState = MotionState>(fallback?: T) => T extends null ? MotionState : MotionState, provideMotion: (contextValue: MotionState) => MotionState; export interface NodeGroup { add: (node: IProjectionNode) => void; remove: (node: IProjectionNode) => void; dirty: VoidFunction; } export interface LayoutGroupState { id?: string; group?: NodeGroup; forceRender?: VoidFunction; key?: Ref<number>; } export declare const injectLayoutGroup: <T extends LayoutGroupState = LayoutGroupState>(fallback?: T) => T extends null ? LayoutGroupState : LayoutGroupState, provideLayoutGroup: (contextValue: LayoutGroupState) => LayoutGroupState;