New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-file-browser-component

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-file-browser-component

A react file browser component

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

A React File Browser Component

A reusable react component for browsing files in the web browser.

React file browser


API

Click here for a example project.

Properties

NameTypeDescriptionExample
currentDirectorystringThe current directory of the file browser (displayed in header)/Users/
currentFilesarray of objects with keys: name, isFolder, dateModified, size, kindThe current files that are shown in the file browser[{ name: 'example.pdf', isFolder: false, dateModified: 'Mon 7 Jun 2021', size: '123 KB', kind: 'Document' }]
locationsarray of objects with keys: device, labelThe available locations (drives). Shown in the left side bar.[{ device: 'C:', label: 'WinDrive' }]
nextEnabledboolNext button in header is enabled or nottrue
previousEnabledboolPrevious button in header is enabled or nottrue
onFileClickcallback func with parameter: fileCallback for when a file is clicked in the table(file) => console.log(file)
onLocationClickcallback func with parameter: locationCallback for when a drive location is clicked(location) => console.log(location)
onNextClickcallback funcCallback for when next button is clicked() => console.log('next clicked')
onPreviousClickcallback funcCallback for when previous buttin is clicked() => console.log('previous is clicked')

FAQs

Package last updated on 07 Jun 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