Dropzone
Dropzone allows the user to drag and drop files to upload.
Drag files here to add them to your repositoryor choose your file
Installation
Usage
The Dropzone
component is used to allow the user to drag and drop files to upload.
This component is a wrapper around the react-dropzone library.
Drag files here to add them to your repositoryor choose your file
Advanced Example
In this example, we learn how to handle files using the Dropzone component.
Drag files here to add them to your repositoryor choose your file
Import
We are exporting the RD
component from the react-dropzone
module.
Here RD is the alias for the react-dropzone
library.
Props
Name | Type | Default | Description |
---|---|---|---|
className | string | "" | Optional additional class names for styling the dropzone. |
props | DropzoneProps & React.RefAttributes<DropzoneRef> | Props passed to the react-dropzone component. |