@nuxt-dev/viewerjs
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@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

Package Sidebar

Install

npm i @nuxt-dev/viewerjs

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

9.58 kB

Total Files

12

Last publish

Collaborators

  • ntnyq