mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 17:16:00 +00:00
- uppy@0.27.4 - @uppy/aws-s3-multipart@0.27.3 - @uppy/aws-s3@0.27.3 - @uppy/companion@0.14.4 - @uppy/core@0.27.2 - @uppy/dashboard@0.27.4 - @uppy/drag-drop@0.27.3 - @uppy/dropbox@0.27.3 - @uppy/file-input@0.27.3 - @uppy/form@0.27.3 - @uppy/golden-retriever@0.27.3 - @uppy/google-drive@0.27.4 - @uppy/informer@0.27.3 - @uppy/instagram@0.27.4 - @uppy/progress-bar@0.27.3 - @uppy/provider-views@0.27.3 - @uppy/react@0.27.4 - @uppy/redux-dev-tools@0.27.3 - @uppy/status-bar@0.27.3 - @uppy/thumbnail-generator@0.27.3 - @uppy/transloadit@0.27.4 - @uppy/tus@0.27.4 - @uppy/url@0.27.4 - @uppy/webcam@0.27.3 - @uppy/xhr-upload@0.27.3 |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| index.js | ||
| index.mjs | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
@uppy/react
React component wrappers around Uppy's officially maintained UI plugins.
Uppy is being developed by the folks at Transloadit, a versatile file encoding service.
Example
const Uppy = require('@uppy/core')
const { DashboardModal } = require('@uppy/react')
const uppy = Uppy()
class Example extends React.Component {
state = { open: false }
render () {
return (
<DashboardModal
uppy={uppy}
open={this.state.open}
onRequestClose={this.handleClose}
/>
)
}
// ..snip..
}
Installation
$ npm install @uppy/react --save
We recommend installing from npm and then using a module bundler such as Webpack, Browserify or Rollup.js.
Alternatively, you can also use this plugin in a pre-built bundle from Transloadit's CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.
Documentation
Documentation for this plugin can be found on the Uppy website.