FileDropzone
ShowcaseComponentsFileDropzone
Forms

FileDropzone.

Drop or select local files with type, size and count limits.

Real interactive component
Live demo
Drop files here or browse

Select files from your device

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

10 props
ParameterTypeRequiredDefaultPossible valuesDescription
onFilesSelected(files: File[]) => voidNo——Receives validated selected or dropped local files.
onError(reason: string) => voidNo——Receives a validation error message.
labelstringNoDrop files here or browse—Primary upload prompt.
descriptionstringNoSelect files from your device—Supporting text.
acceptstringNo—image/* · .pdf · .png · application/jsonAllowed MIME types or extensions.
multiplebooleanNotruetrue · falseAllow more than one file.
maxFilesnumberNo10—Maximum files per selection.
maxSizeBytesnumberNo——Optional individual-file size limit.
disabledbooleanNofalsetrue · falseDisable dropping and browsing.
classNamestringNo——Additional CSS class on the outer component element.