Skip to content
Binary Dreams UI Kit reference FileUpload

File upload

Drag-and-drop file input with validation and removable files.

Loading interactive example

Use FileUpload when readers need to choose or drop one or more files and review validation results.

API

MemberTypeKindRequiredDefault
acceptstringpropNoundefined
disabledbooleanpropNofalse
filesFile[]bindingNo[]
hintstringpropNoundefined
labelstringpropNoundefined
maxSizenumberpropNoundefined
multiplebooleanpropNofalse
onError(error: FileUploadError) => voidcallbackNoundefined
onFilesChange(files: File[]) => voidcallbackNoundefined
titlestringpropNo'Drop files here or click to browse'

Source

Loading source