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

Readme

Keywords

none

Package Sidebar

Install

npm i vue-simple-photoswipe

Weekly Downloads

23

Version

1.0.3

License

none

Last publish

Collaborators

  • sabatinomasala