vue-file-drop

0.2.2 • Public • Published

vue-file-drop

Vue component for File DnD area and call File Select Dialog.

🚚 Install

yarn add vue-file-drop
or
npm i vue-file-drop

Use globally

import VueFileDrop from "vue-file-drop";
 
createApp(App).use(VueFileDrop).mount("#app");

Use locally

<script>
  import { VueFileDrop } from 'vue-file-drop'
 
  export default {
    components: {
      VueFileDrop,
    },
  }
</script>

Template

<template>
  <vue-file-drop>
</template>

📦 Components

vue-file-drop

Props

Name Description Default
accept Restricts downloads to an extension type. *
multiple Allows multiple files to be selected. (disables file reading!) false

events

Name Return type Description
accept FileList When file DnDed or file selected though file select dialog.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    2
    • latest

Version History

Package Sidebar

Install

npm i vue-file-drop

Weekly Downloads

2

Version

0.2.2

License

MIT

Unpacked Size

123 kB

Total Files

10

Last publish

Collaborators

  • miyauci