@lassehaslev/vue-file-field

File field Vue style

Usage no npm install needed!

<script type="module">
  import lassehaslevVueFileField from 'https://cdn.skypack.dev/@lassehaslev/vue-file-field';
</script>

README

vue-file-field

File field Vue style

Install

npm install @lassehaslev/vue-file-field --save-dev

Use

Javascript

    Vue.component( 'file-field', require( '@lassehaslev/vue-file-field' ) );

HTML

    <file-field :multiple="true" accept="image/*" name="file"></file-field>

Styles can be found under src/styles/VueFileField.styl

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, checkout the guide and docs for vue-loader.