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>
12 lines (11 loc) • 643 B
TypeScript
import { MotionConfigState } from './types';
import { ComputedRef } from 'vue';
/**
* Default motion configuration
*/
export declare const defaultConfig: MotionConfigState;
/**
* Context for sharing motion configuration with child components
*/
export declare const injectMotionConfig: <T extends ComputedRef<MotionConfigState> = ComputedRef<MotionConfigState>>(fallback?: T) => T extends null ? ComputedRef<MotionConfigState> : ComputedRef<MotionConfigState>, provideMotionConfig: (contextValue: ComputedRef<MotionConfigState>) => ComputedRef<MotionConfigState>;
export declare function useMotionConfig(): ComputedRef<MotionConfigState>;