Skip to main content

Dropzone

Capture files from user with drag and drop

Storybook Docs

Props

NameTypeDefaultDescription
browseLabelstring"Browse your device"String displayed at the bottom next to the Eye icon
childrenReactElement-Element inserted at the bottom of the container
dragLabelstring"Drag and drop your documents here"String displayed in the center of the container
filesIFile[][]Controlled value of the current files
buttonPlusTitlestring"Add button"Tooltip title of top + button
onDrop(files: FileWithPath[]) => void

See FileWithPath
-Called when valid files are dropped into dropzone
onRemoveFile(file: IFile) => void-Called when added file is removed by clicking on x button
...--extends Dropzone props

IFile

AttributeTypeDescription
idnumber | stringNested array of menus
...-Extends FileWithPath