Skip to content

BolsteDev/react-dropbox-chooser-component

Repository files navigation

react-dropbox-chooser-component

CircleCI npm version

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
  />
// ...

About

A simple dropbox chooser component for react

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published