@amz-x/react-key-based-filemanager
v0.0.3
Published
Folder based file browser given a flat keyed list of objects, powered by React.
Downloads
10
Readme
react-key-based-filemanager
Project was forked from uptick/react-keyed-file-browser.
Folder based file browser given a flat keyed list of objects, powered by React.
Live Demo
Check out the live demo here: http://uptick.github.io/react-keyed-file-browser/
Installation
Install the package with npm:
npm install @amz-x/react-key-based-filemanager
Then require and use with ES6 imports:
import React from 'react'
import ReactDOM from 'react-dom'
import FileBrowser from '@amz-x/react-key-based-filemanager'
var mount = document.querySelectorAll('div.browser-mount');
ReactDOM.render(
<FileBrowser
files=[]
/>,
mount[0]
);
Optionally, include the built css with an import:
@import 'node_modules/react-keyed-file-browser/dist/react-keyed-file-browser.css';
or tag:
<link
href="static/node_modules/react-keyed-file-browser/dist/react-keyed-file-browser.css"
rel="stylesheet"
>
Full reference documentation coming soon. For now, take a look at the reference implementation with event handlers on the live demo at http://uptick.github.io/react-keyed-file-browser/.