Skip to content

ntnyq/nuxt-module-viewerjs

Repository files navigation

@nuxt-dev/viewerjs

Viewer.js integrated for Nuxt.

CI NPM VERSION NPM DOWNLOADS LICENSE

Install

npm i viewerjs @nuxt-dev/viewerjs -D
yarn add viewerjs @nuxt-dev/viewerjs -D
pnpm add viewerjs @nuxt-dev/viewerjs -D

Usage

Add to your nuxt.config.ts:

export default {
  modules: [
    // other modules
    '@nuxt-dev/viewerjs',
  ],

  viewerjs: {
    // custom options
    container: '#__nuxt',
  },
}

Options

container

Container of all images.

  • type: string
  • required: false
  • default: #__nuxt

delay

Delay time in millseconds.

  • type: number
  • required: false
  • default: 200

Check Viewer.js - Options for more options.

Credits

License

MIT License © 2025-PRESENT ntnyq

About

🍎 Viewer.js integrated for Nuxt

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •