JSPM

@svar-ui/react-uploader

2.3.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 44
  • Score
    100M100P100Q74554F
  • License MIT

Lightweight React file upload component with drag-and-drop support

Package Exports

  • @svar-ui/react-uploader
  • @svar-ui/react-uploader/all.css
  • @svar-ui/react-uploader/style.css

Readme

SVAR React Uploader

npm License npm downloads

SVAR React Uploader is a lightweight, customizable React component for easy and intuitive file uploading, allowing users to drag and drop files or select them from their device. The component can be easily used with SVAR React Core library.

🛠️ How to Use

To use the uploader, simply import the package and include the component in to .jsx file:

    import { Uploader, UploaderList, useUploaderState } from "@svar-ui/react-uploader";
    import "@svar-ui/react-uploader/all.css";

    function MyComponent(){
        const uploadURL = "http://localhost:3000/data";
        const data = useUploaderState();

        return (<Uploader {uploadURL} data={data} />);
    }