1.0.6 • Published 5 years ago

react-dropper-element v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-dropper-element

React HOC for drop on any elements.

install

npm install --save react-dropper-element

usage

import DragDropElement from 'react-dropper-element';


<DropperElement 
  isActive 
  dropZoneLayout={ /* Your Drop Element  */ }
  onDrop={ /* Drop handler function  */ }>
  <div>
    <div>Drag and drop a Photo</div>
    <div> or </div>
    <div> the green element here</div>
  </div>
</DropperElement>

Component properties

PropertyTypeDescription
dropZoneLayoutelement objectReact element to appear on top of the the element to drop to.
onDropfunctionon drop handler function
isActivebooleanActive or disactive the drop zone, default - true

License

This project is licensed under the MIT License.

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago