mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-22 17:58:05 +00:00
* main: (22 commits) @uppy/xhr-upload: refactor to use `fetcher` (#5074) docs: use StackBlitz for all examples/issue template (#5125) Update yarn.lock Add svelte 5 as peer dep (#5122) Bump docker/setup-buildx-action from 2 to 3 (#5124) Bump actions/checkout from 3 to 4 (#5123) Remove JSX global type everywhere (#5117) Revert "@uppy/core: reference updated i18n in Restricter" @uppy/core: reference updated i18n in Restricter @uppy/utils: improve return type of `dataURItoFile` (#5112) @uppy/drop-target: change drop event type to DragEvent (#5107) @uppy/image-editor: fix label definitions (#5111) meta: bump Prettier version (#5114) @uppy/provider-views: bring back "loaded X files..." (#5097) @uppy/dashboard: fix type of trigger option (#5106) meta: fix linter @uppy/form: fix `submitOnSuccess` and `triggerUploadOnSubmit` combination (#5058) Bump docker/build-push-action from 3 to 5 (#5105) Bump akhileshns/heroku-deploy from 3.12.12 to 3.13.15 (#5102) Bump docker/login-action from 2 to 3 (#5101) ... |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| .npmignore | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
@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
import React from 'react'
import Uppy from '@uppy/core'
import { DashboardModal } from '@uppy/react'
const uppy = new 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
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.