1.0.0 • Published 7 years ago

r-file-browser v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

r-file-browser

A react component which gives your custom component or control capability to open up and select files from you desktop

How to

Install

npm install r-file-browser --save

Use

 import { FileBrowser } from 'r-file-browser'

export class MyCustomPage extends React.Component {

  onFileSelect(files) {
    console.log('process files')
  }

  render() {
    return <div>
      
      
      
    <FileBrowser 
      onSelect={this.onFileSelect.bind(this)}>
      <Button>Browse Files</Button>
    </FileBrowser>
      
      
      
    <div>
  }
}