Image Preview

A full-screen image viewer with navigation, transforms, and accessible controls.

Image Preview

Full viewer

Open any thumbnail to navigate, zoom, rotate, fit, reset, and drag a magnified image. The viewer also supports the mouse wheel and the ←, →, +, -, R, Shift+R, F, 0, and Esc keys.

API

PROPS

Property
Type
Values
Description
default
Example
More
v-model
Boolean
true | false
Control preview visibility.
false
—
url-list
Array
string[]
Image URLs displayed by the preview.
[]
—
alt-list
Array
string[]
Accessible descriptions aligned with url-list.
[]
—
initial-index
Number
number >= 0
Index of the image shown when the preview opens.
0
—
infinite
Boolean
true | false
Loop from the first and last images when navigating.
true
—
hide-on-click-modal
Boolean
true | false
Close the preview when its empty backdrop is clicked.
true
—
close-on-press-escape
Boolean
true | false
Close the preview when Escape is pressed.
true
—
show-toolbar
Boolean
true | false
Show zoom, rotation, sizing, and reset controls.
true
—
wheel-zoom
Boolean
true | false
Zoom toward the pointer when the mouse wheel is used.
true
—
draggable
Boolean
true | false
Allow a magnified image to be panned with pointer dragging.
true
—
zoom-rate
Number
number > 1
Scale multiplier applied by each zoom step.
1.2
—
min-scale
Number
number > 0
Minimum manual zoom scale. Fit mode can go lower for large images.
0.2
—
max-scale
Number
number > 0
Maximum zoom scale.
7
—
z-index
Number
layer number
Set the preview overlay stacking order.
3000
—

EVENTS

Event
Type
Description
default
Example
More
close
—
Fired when the preview requests to close.
—
—
switch
—
Fired with the active index after image navigation.
—
—
transform
—
Fired after zooming, rotation, panning, sizing, or reset.
—
—

EXPOSES

Method
Type
Description
default
Example
More
close
—
Close the preview.
—
—
next
—
Show the next image when available.
—
—
previous
—
Show the previous image when available.
—
—
setIndex
—
Show an image by index.
—
—
zoomIn
—
Increase the current image scale.
—
—
zoomOut
—
Decrease the current image scale.
—
—
rotateLeft
—
Rotate the current image 90 degrees counterclockwise.
—
—
rotateRight
—
Rotate the current image 90 degrees clockwise.
—
—
toggleFit
—
Toggle between fit-to-screen and original-size modes.
—
—
fitToScreen
—
Fit the current image inside the viewport.
—
—
showOriginal
—
Display the current image at its original size.
—
—
reset
—
Reset rotation, position, and scale to fit mode.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied