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>

12 lines (11 loc) 811 B
import { MotionState } from '../state/motion-state'; import { NodeGroup } from 'motion-dom'; import { Ref } from 'vue'; export declare const injectMotion: <T extends MotionState = MotionState>(fallback?: T) => T extends null ? MotionState : MotionState, provideMotion: (contextValue: MotionState) => MotionState, motionInjectionKey: import('vue').InjectionKey<MotionState>; 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, layoutGroupInjectionKey: import('vue').InjectionKey<LayoutGroupState>;