Mikael Finstad 8f97fd61fa cleanup tsconfig (#5520) 5 meses atrás
..
src 13581742e5 @uppy/react: fix `use-sync-external-store` import (#5426) 8 meses atrás
.npmignore 462e8c61bd @uppy/react: refactor to TS (#5012) 1 ano atrás
CHANGELOG.md ca0a7864c9 Release: uppy@4.6.0 (#5500) 6 meses atrás
LICENSE c9b266ade1 Move React components to `@uppy/react` package. 6 anos atrás
README.md 71a6fcd956 Fix links (#5492) 6 meses atrás
package.json ca0a7864c9 Release: uppy@4.6.0 (#5500) 6 meses atrás
tsconfig.build.json 8f97fd61fa cleanup tsconfig (#5520) 5 meses atrás
tsconfig.json 915a563da9 @uppy/react: remove `useUppy` & reintroduce `useUppyState` (#5059) 1 ano atrás

README.md

@uppy/react

npm version CI status for Uppy tests CI status for Companion tests CI status for browser tests

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

/** @jsx React */
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() {
    const { open } = this.state
    return (
      <DashboardModal
        uppy={uppy}
        open={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: Smart CDN. 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.

License

The MIT License.