vue-simple-photoswipe

1.0.3 • Public • Published

Vue Simple Photoswipe

Photoswipe plugin for Vue, based on https://github.com/ymyang/vue-photoswipe.

Getting started

yarn add vue-simple-photoswipe

Usage in the browser

import Vue from 'vue'
import PhotoSwipe from 'vue-simple-photoswipe/dist/vue-simple-photoswipe'
Vue.use(PhotoSwipe)

Usage with Nuxt

It's important that ssr is set to false, since the plugin needs the document to be available. In nuxt.config.js add the following plugin:

plugins: [
    {src: 'vue-simple-photoswipe/nuxt', ssr: false}
]

Credit

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    38
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    38
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i vue-simple-photoswipe

Weekly Downloads

38

Version

1.0.3

License

none

Last publish

Collaborators

  • sabatinomasala