Skip to content

Compatibility ​

EnvironmentSupport
Vue2.4+
Viewer.js1.11.7+ (1.x)
SSRSafe to import; DOM operations run only in the browser.

The Vue 2 runtime is transpiled to ES5. For IE 11, load the optional polyfills before importing the plugin.

js
import 'v-viewer/polyfills'

SSR / Nuxt ​

The component initializes after mounting. Use the component in SSR applications; register directives in a client plugin. Call viewerApi or this.$viewerApi only in browser event handlers.

Browser builds load styles automatically; server imports do not load CSS. Nuxt supports importing v-viewer in both client and server builds.

Released under the MIT License.