Package Exports
- @dropzone-ui/react
- @dropzone-ui/react/build/index.es.js
- @dropzone-ui/react/build/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dropzone-ui/react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Dropzone UI
Thank you so much for using dropzone-ui/react ❤️ !
Dropzone UI has grown very fast and has exceeded its original scope. That's why we find reasonable to rebrand it and create a new package taking the best of this one and adding more features and new components. This new package is here and its name is Files UI ⚡. In an very near future we'll stop giving support to dropzone-ui, so we enforce you to upgrade to this new package. In the meanwhile this package will become a wrapper for files-ui.
⚡ Live demos and full documentation : files-ui.com
❤️ it ?, support us by giving a ⭐ on :octocat: Github :D
Important
From now on @files-ui/react is the only dependency. Check out the changelog file to know what's new.
Sample result:
This is a small part of what you can find on files-ui 👀
- More previews here.
Requirement
@dropzone-ui/react is based on React Hooks. It requires react v16.8+.
Installation
@dropzone-ui/react is available as an npm package.
// with npm
npm i @dropzone-ui/react// with yarn
yarn add @dropzone-ui/reactUsage and examples
Here is a quick example to get you started, it's all you need:
import * as React from "react";
import ReactDOM from "react-dom";
import { Dropzone, FileMosaic } from "@dropzone-ui/react";
function App() {
const [files, setFiles] = React.useState([]);
const updateFiles = (incommingFiles) => {
setFiles(incommingFiles);
};
return (
<Dropzone onChange={updateFiles} value={files}>
{files.map((file) => (
<FileMosaic {...file} preview />
))}
</Dropzone>
);
}
ReactDOM.render(<App />, document.querySelector("#app"));Yes, it's really all you need to get started as you can see in these live and interactive demos:
| Basic Sample 🍰 | Advanced Sample 🔨 |
|---|---|
API documentation
The complete documentation of every component has been moved to files-ui.com API page.
However if you are still using dropzone-ui version 6.7.0 or lower, you can find the documentation and demos here:
Supporters
Special thanks to these amazing people ⭐ :
👏 Stargazers
👏 Forkers
More Previews
Image full screen preview 🖼️

Video full screen preview 🎞️

FileCard, FileInputButton and Avatar preview 🎴

DarkMode 🌙 🌞


License
This project is licensed under the terms of the MIT license.
