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>
10 lines (9 loc) • 582 B
TypeScript
import { Box } from 'framer-motion';
import { Ref } from 'vue';
export interface ReorderContextProps<T> {
axis?: Ref<'x' | 'y'>;
registerItem?: (item: T, layout: Box) => void;
updateOrder?: (item: T, offset: number, velocity: number) => void;
groupRef?: Ref<HTMLElement | null>;
}
export declare const useReorderContext: <T extends ReorderContextProps<any> = ReorderContextProps<any>>(fallback?: T) => T extends null ? ReorderContextProps<any> : ReorderContextProps<any>, reorderContextProvider: (contextValue: ReorderContextProps<any>) => ReorderContextProps<any>;