UNPKG

@kcirtaptrick/framer-motion

Version:

A simple and powerful React animation library

11 lines (10 loc) 307 B
import { Axis, Box } from "../../projection/geometry/types"; export interface ReorderContextProps<T> { axis: "x" | "y"; registerItem: (id: T, layout: Box) => void; updateOrder: (id: T, offset: number, velocity: number) => void; } export interface ItemData<T> { value: T; layout: Axis; }