Skip to content

Really simple photo modal plugin for Vue and uses Tailwind.

License

Notifications You must be signed in to change notification settings

cbenjafield/vue-photo-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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' 
})

About

Really simple photo modal plugin for Vue and uses Tailwind.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published