react-dropbox-chooser-component
v1.0.0
Published
A simple dropbox chooser component for react
Downloads
10
Readme
react-dropbox-chooser-component
A simple dropbox chooser component for react.
Installing
yarn add react-dropbox-chooser-component
Usage
import DropboxChooser from 'react-dropbox-chooser-component';
// ...
<Chooser
appKey="YOUR_DROPBOX_API_KEY_HERE" // Optional, You do NOT need to provide a key when mounting. Once a key is set, then the component will mount Dropbox
className="dropbox_custom_class" // Optional
extensions={['.jpg']} // Optional
linkType="direct" // Optional, or "preview", defaults to "preview"
multiselect // Optional, defaults false
onCancel={() => {}} // Optional, default noop
onSuccess={(fs) => { console.log(fs); } // Optional, default noop
/>
// ...