Skip to content
V

v-viewer

Image viewer component for vue2 and vue3, supports rotation, scale

by mirari

#574in UI Libraries
0In stores

Description

v-viewer is an image viewer component for Vue 2 and Vue 3, built on the viewer.js library. It shows images in a viewer with rotation, scalin…

Highlights

  • Image viewer for Vue 2 and Vue 3
  • Directive, component and API usage
  • Rotation, scaling and zoom from viewer.js
  • UMD, CommonJS and AMD builds
  • Works with the Options and Composition APIs

Ratings & Reviews

No ratings yet

Be the first to rate v-viewer.

People also visit

H

hevue-img-preview

Image preview for Vue 2 & 3, supports mobile and desktop. (demo)

UI Libraries
Launch
V

vue-image-zoomer

image zoom component for Vue.js 2 & 3, that also works on touch devices

UI Libraries
Launch
V

vue-picture-cropper

A simple and easy-to-use picture cropping component for Vue 3

UI Libraries
Launch
V

Viewerjs

JavaScript image viewer

Photo & Video
Launch
V

vue-cropper

A picture clipping plugin for vue2.0

UI Libraries
Launch
V

vue-slider-component

A highly customized slider component

UI Libraries
Launch

v-viewer FAQ

What is v-viewer?

A Vue component, directive and API for showing images in a gallery viewer, built on viewer.js.

Which Vue versions does it support?

Vue 2 and Vue 3. The README has a separate section for Vue 2, and the install step registers the plugin with app.use().

How do I install it?

Install it from npm, import the package and its CSS file, then call app.use() to register the component, directive and API globally.

How do I use it on a page?

Add the v-viewer directive to an element, and every img inside it opens in the viewer. You can pass options as the directive value, for example inline set to true.

What is the difference between static and rebuild?

The static modifier creates the viewer once. The rebuild modifier recreates it when the source images change, which the README suggests when display problems appear with the default update.

Can I open a gallery without img elements?

Yes. In modal mode, the API function shows a gallery from an images list without rendering img elements yourself.

Can I load it without a bundler?

Yes. A UMD build works in the browser, and CommonJS and AMD builds are also covered in the README.

Is there a demo?

Yes. The README links a live demo and a Chinese version of the documentation.

What are the best v-viewer alternatives?

Popular alternatives to v-viewer include hevue-img-preview, vue-image-zoomer and vue-picture-cropper. See all v-viewer alternatives

Developer Stuff

Badges