Elements

Components

Image Viewer

A lightbox: the picture over a dimmed page, with a small toolbar beneath it. Zoom is the reader's hand (half to three times, clamped), a quarter turn at a time rotates, Escape and the scrim close — the dialog machine carries the modal part. `open` may stay with the caller; left undefined the viewer keeps it to itself.

#Basic usage

image-viewer/basic Vue React
image-viewer/not-zoomable Vue React

#Props

#ImageViewer

PropTypeDefaultDescription
srcString—
altString""—
openBooleanundefined—
zoomableBooleantrue—