Docs / Files / File Upload
File Upload
Drop zone and file input. Dark mode is controlled by the parent through isDark; the toggle below lives outside the component, which renders no theme
control of its own.
Click to upload or drop files
PDF, DOC/DOCX, XLSX, CSV, PNG, or JPG
Browse files
Differences from upstream
- Exported as
FileUpload, like upstream.classNameandclassare both accepted. - Also exports helpers and types that upstream keeps private to the file:
DEFAULT_ACCEPT,DEFAULT_ACCEPTED_FILE_TYPES,formatBytes,matchesAccept,toUploadItems,FileUploadItem, andAcceptedFileType. - The animated border beam is a pure-CSS conic gradient instead of the
BorderBeamcomponent;showBorderBeamis kept.borderBeamThemeis replaced by the sharedisDarkflag. acceptedFileTypesentries take a textglyphinstead of aniconcomponent.- Accepts
isDarkandonIsDarkChange; it reflectsisDark(passing it to each row'sFileThumbnail) and never callsonIsDarkChange.