0.0.2 • Published 5 years ago

vue-file-picker v0.0.2

Weekly downloads
33
License
MIT
Repository
github
Last release
5 years ago

About

A fairly minimal file picker & drop area which aims to stay out of the way of your application.

Demo here

We handle

You handle

  • What happens after files are recieved, eg
    • uploading
    • presentation of the UI

Install

npm install vue-file-picker --save

Usage

Props

NameTypeDefaultDescription
idstring (required)nullid of the wrapping div
acceptstring details*/*A string that defines the file types the file input should accept
allowMultipleboolean detailsfalseAllows the user to select more than one file

Slots

NameDescription
iconSomething to display above the label, eg an i or svg
labelA string to display as the label

Events

NameDescription
vfp-file-added(FileList)Triggered by the addition of a file/s, recieves an FileList as the argument.