@input-kit/upload
React file upload primitives with drag-and-drop, previews, validation, and queues
npm
npm install @input-kit/uploadThis package has no automated tests yet. The implementation works and the demo below is live, but there is no suite guarding it. Adding one is the most useful contribution available here — see CONTRIBUTING.
Live demo
Loading demo…
Exports
- UploadStatus
- UploadFile
- UploadOptions
- UseUploadOptions
- UseUploadReturn
- FileUploadProps
- UploadProgressProps
- UploadListProps
- formatFileSize
- getFileExtension
- isImageFile
- createPreviewUrl
- revokePreviewUrl
- parseAccept
- matchesAccept
- uploadFile
- useUpload
- UploadProgress
- UploadList
- FileUpload
- UploadButton