Skip to content

Compatibility ​

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

Vue 3 requires modern browsers. <script setup> examples require Vue 3.2+; Vue 3.0/3.1 can use ordinary setup and local registration.

SSR / Nuxt ​

The component initializes after mounting. SSR applications can use the component or call useViewer inside setup; call its returned show() method 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.