uploadfile-library
v1.0.43
Published
click and drag & drop upload file
Downloads
5
Readme
uploadfile-library
This library enables drag-and-drop file upload along with displaying file details.
Installation
To install the uploadfile-library
, you can use npm or yarn:
NPM
npm install uploadfile-library
Installation
npm i uploadfile-library
or
yarn add uploadfile-library
Usage
Import the FileUpload component into your React application: import React from "react"; import { FileUpload } from 'uploadfile-library';
FileUpload Component
The FileUpload component allows drag-and-drop file uploads, click and displays the uploaded file details.
Props styles: (Object) A style object that can be passed to customize the appearance of the component.
FileUpload Component Details
The FileUpload component accepts multiple functionalities:
Drag-and-drop file upload functionality. Displaying file name, size, extension, and last modified date. Removing a file from the uploaded files list.
Dependencies
The uploadfile-library relies on the following dependencies:
@babel/cli, @babel/core, @babel/preset-env, @babel/preset-react: Babel dependencies for transpiling. babel-loader: Webpack loader for Babel. css-loader, style-loader: Loaders for handling CSS files. react: React library.