@oku-ui/motion
Version:
A tiny, performant animation library for VueJS
8 lines (7 loc) • 533 B
TypeScript
import { Ref } from 'vue';
import { MotionState } from '../state/motion-state';
export declare const provideMotion: (state: MotionState | null) => void, useMotion: (consumerName?: string) => MotionState | null, motionKey: import('vue').InjectionKey<MotionState | null>;
export declare const provideMotionPresence: (state: PresenceContext) => void, useMotionPresence: (consumerName?: string) => PresenceContext, presenceKey: import('vue').InjectionKey<PresenceContext>;
export interface PresenceContext {
initial: Ref<boolean>;
}