vue-photo-modal

0.1.9 • Public • Published

Vue Photo Modal

A really simple modal plugin to show images larger when using Vue and Tailwind.

Vue Photo Modal example

Installation

The plugin is available from NPM.

npm install --save vue-photo-modal

Then, tell Vue to use the plugin:

import VuePhotoModal from 'vue-photo-modal'

Vue.use(VuePhotoModal)

This will allow you to access the plugin within Vue like so:

this.$photoModal.add({
    src: 'src to image',
    alt: 'alt text to use for the image',
    width: 'explicitly set the width',
    height: 'explicitly set the height',
    class: 'class name for the image' 
})

Dependents (0)

Package Sidebar

Install

npm i vue-photo-modal

Weekly Downloads

11

Version

0.1.9

License

MIT

Unpacked Size

6.32 kB

Total Files

8

Last publish

Collaborators

  • cbenjafield