You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-material-file-upload

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-material-file-upload

File upload compoennt for React with Material UI components

0.0.4
latest
Source
npmnpm
Version published
Weekly downloads
2.2K
-3.19%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

react

FAQs

Package last updated on 18 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts