Popularity
1.9
Declining
Activity
0.0
Stable
93
3
9
Programming language: CoffeeScript
License: MIT License
Tags:
UI Components
Drag And Drop
react-droparea alternatives and similar libraries
Based on the "Drag and Drop" category.
Alternatively, view react-droparea alternatives based on common mentions on social networks and blogs.
-
dnd-kit
The modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
Promo
surveyjs.io

Do you think we are missing an alternative of react-droparea or a related project?
README
Droparea - HTML5 file Drag and Drop component
Instalation
npm install react-droparea
Usage
React = require 'react'
{div} = React.DOM
Dragarea = React.createFactory(require '../index')
App = React.createClass
_onDrop: (file) ->
console.log file
_onRootDrop: ->
console.log 'root'
render: ->
div null,
Dragarea
onDrop: @_onRootDrop,
for item in [1..10]
Dragarea
className: 'droparea-item'
key: item
onDrop: @_onDrop,
div 'Totally placeholder 1'
div 'Totally placeholder 2'
div 'Totally placeholder 3'
React.render(React.createElement(App), document.getElementById('app'))
You can fiddle with prepared demo. Clone the repo, npm install
and npm start
.
Then visit localhost:3000
.
Options - React props
disableClick: React.PropTypes.bool
onDragEnter: React.PropTypes.func
onDragEnterStopPropagation: React.PropTypes.bool
onDragLeave: React.PropTypes.func
onDragLeaveStopPropagation: React.PropTypes.bool
onDrop: React.PropTypes.func
onDropStopPropagation: React.PropTypes.bool
dropEffect: React.PropTypes.string
className: React.PropTypes.string
activeClassName: React.PropTypes.string
multiple: React.PropTypes.bool
supportedFormats: React.PropTypes.arrayOf(React.PropTypes.string)
Credits
This library is inspired by react-dropzone by Param Aggarwal.