Package Exports
- @svar-ui/react-uploader
- @svar-ui/react-uploader/all.css
- @svar-ui/react-uploader/style.css
Readme
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} />);
}