Let your images support preview, zoom, share, swipe view and download.
How to use
Install
pnpm add -D vuepress-plugin-photo-swipe
yarn add -D vuepress-plugin-photo-swipe
npm i -D vuepress-plugin-photo-swipe
Usage
// .vuepress/config.ts
import { photoSwipePlugin } from "vuepress-plugin-photo-swipe";
export default {
plugins: [
photoSwipePlugin({
// your options
}),
],
};
// .vuepress/config.js
import { photoSwipePlugin } from "vuepress-plugin-photo-swipe";
export default {
plugins: [
photoSwipePlugin({
// your options
}),
],
};
Migrating from V1
For details, see Migration Guide.