UNPKG
@kcirtaptrick/framer-motion
Version:
latest (6.2.9)
6.2.10
6.2.9
A simple and powerful React animation library
github.com/framer/motion
framer/motion
@kcirtaptrick/framer-motion
/
types
/
components
/
Reorder
/
types.d.ts
11 lines
(10 loc)
•
307 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
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
; }