FileDrop
accept
Accept | undefined = { image/*: [], }
Pass a comma-separated string of file types e.g. "image/png" or "image/png,image/jpeg"
fileName
string
forceFileType
"audio" | "video" | "image"
handleAddFile
(event: DropEvent | CreateEvent) => void
handleRemoveFile
(event: DropEvent | CreateEvent) => void
isClearable
Boolean
isEditable
Boolean
name
string
onBlur
() => void
onChange
(event: DropEvent | CreateEvent) => void
onError
((event?: string) => void) & ((err: Error) => void)
value
string | FileWithPreview
wordings
WordingsType
Pass an object with optional fields title, hint, fileButtonText and/or previewButtonText (string or JSX.Element)