{"id":13543845,"url":"https://github.com/avocode/react-droparea","last_synced_at":"2025-04-30T18:10:22.348Z","repository":{"id":32668721,"uuid":"36257122","full_name":"avocode/react-droparea","owner":"avocode","description":"Drag and Drop library for React","archived":false,"fork":false,"pushed_at":"2017-12-06T21:23:38.000Z","size":76,"stargazers_count":93,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-20T06:06:43.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avocode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-25T22:09:13.000Z","updated_at":"2023-05-10T07:53:51.000Z","dependencies_parsed_at":"2022-08-29T06:11:14.722Z","dependency_job_id":null,"html_url":"https://github.com/avocode/react-droparea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Freact-droparea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Freact-droparea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Freact-droparea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Freact-droparea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avocode","download_url":"https://codeload.github.com/avocode/react-droparea/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251758170,"owners_count":21638989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T11:00:37.098Z","updated_at":"2025-04-30T18:10:22.326Z","avatar_url":"https://github.com/avocode.png","language":"CoffeeScript","readme":"# Droparea - HTML5 file Drag and Drop component\n\n![](https://upx.cz/286)\n\n## Instalation\n\n`npm install react-droparea`\n\n## Usage\n\n    React = require 'react'\n    {div} = React.DOM\n    Dragarea = React.createFactory(require '../index')\n\n    App = React.createClass\n\n      _onDrop: (file) -\u003e\n        console.log file\n\n      _onRootDrop: -\u003e\n        console.log 'root'\n\n      render: -\u003e\n        div null,\n          Dragarea\n            onDrop: @_onRootDrop,\n\n            for item in [1..10]\n              Dragarea\n                className: 'droparea-item'\n                key: item\n                onDrop: @_onDrop,\n                  div 'Totally placeholder 1'\n                  div 'Totally placeholder 2'\n                  div 'Totally placeholder 3'\n\n    React.render(React.createElement(App), document.getElementById('app'))\n\nYou can fiddle with prepared demo. Clone the repo, `npm install` and `npm start`.\nThen visit `localhost:3000`.\n\n## Options - React props\n\n    disableClick: React.PropTypes.bool\n    onDragEnter: React.PropTypes.func\n    onDragEnterStopPropagation: React.PropTypes.bool\n    onDragLeave: React.PropTypes.func\n    onDragLeaveStopPropagation: React.PropTypes.bool\n    onDrop: React.PropTypes.func\n    onDropStopPropagation: React.PropTypes.bool\n    dropEffect: React.PropTypes.string\n    className: React.PropTypes.string\n    activeClassName: React.PropTypes.string\n    multiple: React.PropTypes.bool\n    supportedFormats: React.PropTypes.arrayOf(React.PropTypes.string)\n\n## Credits\n\nThis library is inspired by [react-dropzone](https://github.com/paramaggarwal/react-dropzone) by Param Aggarwal.\n","funding_links":[],"categories":["UI Components","Demos","\u003csummary\u003eUI Components\u003c/summary\u003e"],"sub_categories":["Form Components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favocode%2Freact-droparea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favocode%2Freact-droparea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favocode%2Freact-droparea/lists"}