vue-quick-preview

A lightweight lightbox.

Usage no npm install needed!

<script type="module">
  import vueQuickPreview from 'https://cdn.skypack.dev/vue-quick-preview';
</script>

README

Vue Quick Preview

A lightweight lightbox.

Install

npm i --save vue-quick-preview

Usage

<template>
  <img src="https://placeimg.com/400/400/any" @click="onImageClick" />
</template>

<script>
  import preview from 'vue-quick-preview';

  export default {
    methods: {
      onImageClick(e) {
        const instance = preview(e.target);
        console.log(instance);
      },
    },
  };
</script>

License

MIT