JSPM

react-material-file-upload

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2920
  • Score
    100M100P100Q119305F
  • License MIT

File upload compoennt for React with Material UI components

Package Exports

  • react-material-file-upload

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-material-file-upload) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Material File Upload

React Dropzone based Material UI file upload component for React.js. This is created for Material UI v5 or later versions. Written in Typescript. Library exports commonjs and esm modules.

npm Known Vulnerabilities Code Climate Codacy Badge GitHub license Twitter

Install

yarn add react-material-file-upload
  • Peer dependencies.

Library is depends on @mui/material, @mui/icons-material, @emotion/react, @emotion/styled. These are Material UI dependencies. Please refer the Material UI guide on configuring it.

Example

import { useState } from 'react';
import FileUpload from 'react-material-file-upload';

const App = () => {
  const [files, setFiles] = useState<File[]>([]);
  return <FileUpload value={files} onChange={setFiles} />;
};

Edit react-material-file-upload