UNPKG
react-dnd
Version:
beta (3.0.0)
latest (16.0.1)
16.0.1
16.0.0
15.1.2
15.1.1
15.1.0
15.0.2
15.0.1
15.0.0
14.0.5
14.0.4
14.0.3
14.0.2
14.0.1
14.0.0
13.1.1
13.1.0
13.0.1
13.0.0
12.0.0
11.1.3
11.1.1
11.1.0
11.0.0
10.0.2
10.0.1
10.0.0
9.5.1
9.5.0
9.4.0
9.3.4
9.3.2
9.3.1
9.2.1
9.1.0
9.0.1
9.0.0
8.0.3
8.0.2
8.0.0
7.7.0
7.6.1
7.6.0
7.5.0
7.4.5
7.4.4
7.4.3
7.4.2
7.4.1
7.4.0
7.3.2
7.3.1
7.3.0
7.2.1
7.2.0
7.1.0
7.0.2
7.0.1
7.0.0
6.0.0
5.0.0
4.0.5
4.0.4
4.0.3
4.0.2
4.0.0
3.0.2
3.0.1
3.0.0
2.6.0
2.5.4
2.5.3
2.5.2
2.5.1
2.4.0
2.3.0
2.2.4
2.2.3
2.2.0
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
1.0.0-rc
1.0.0-beta.0
1.0.0-alpha.2
1.0.0-alpha.1
1.0.0-alpha
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.2
0.8.1
0.8.0
0.7.0
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.0
Drag and Drop for React
react-dnd/react-dnd
react-dnd
/
dist
/
hooks
/
useDragLayer.d.ts
7 lines
(6 loc)
•
287 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
type
{
DragLayerMonitor
}
from
'../types/index.js'
;
/** * useDragLayer Hook *
@param
collector The property collector */
export
declare
function
useDragLayer<
CollectedProps
,
DragObject
=
any
>(
collect
:
(
monitor
:
DragLayerMonitor
<
DragObject
>
) =>
CollectedProps
):
CollectedProps
;