github-actions[bot] eebc9a0432 Release: uppy@3.22.1 (#4935) 1 year ago
..
src 8e8f1789bc @uppy/vue: export FileInput (#4736) 1 year ago
types 34c78e9093 meta: run Prettier on existing files (#4713) 1 year ago
.gitignore a47090c2c6 meta: fix `yarn build:clean` 1 year ago
.npmignore e65f2b0397 add `.npmignore` files to ignore .gitignore when packing (#3380) 3 years ago
CHANGELOG.md 49c9bcc8b7 Release: uppy@3.18.0 (#4754) 1 year ago
LICENSE b082e54029 Vue integration (#2500) 4 years ago
README.md 7adacb74a7 meta: Fix logos in all the readmes (#4407) 2 years ago
package.json eebc9a0432 Release: uppy@3.22.1 (#4935) 1 year ago

README.md

@uppy/vue

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

Vue component wrappers around Uppy’s officially maintained UI plugins.

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

<template>
  <dashboard-modal 
  :uppy="uppy" 
  :open="open" 
  :props="{
    onRequestCloseModal: handleClose
  }"/>
</template>

<script>
import Uppy from '@uppy/core'
import { DashboardModal } from '@uppy/vue'

export default {
  components: {
    DashboardModal
  },
  computed: {
    uppy: () => new Uppy()
  },
  data () {
    return {
      open: false
    }
  },
  methods: {
    handleClose() { this.open = false }
  }
}
</script>

Installation

$ npm install @uppy/vue

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.

License

The MIT License.