main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
616 bytes
|
Line | |
---|
1 | /// <reference types="react" />
|
---|
2 | export interface DropAreaState {
|
---|
3 | over: boolean;
|
---|
4 | }
|
---|
5 | export interface DropAreaBond {
|
---|
6 | onDragOver: React.DragEventHandler;
|
---|
7 | onDragEnter: React.DragEventHandler;
|
---|
8 | onDragLeave: React.DragEventHandler;
|
---|
9 | onDrop: React.DragEventHandler;
|
---|
10 | onPaste: React.ClipboardEventHandler;
|
---|
11 | }
|
---|
12 | export interface DropAreaOptions {
|
---|
13 | onFiles?: (files: File[], event?: any) => void;
|
---|
14 | onText?: (text: string, event?: any) => void;
|
---|
15 | onUri?: (url: string, event?: any) => void;
|
---|
16 | }
|
---|
17 | declare const useDrop: (options?: DropAreaOptions, args?: never[]) => DropAreaState;
|
---|
18 | export default useDrop;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.