Image Viewer
Morphing
MorphingLightbox.vueCollected moments
Look a little closer.
Open a photograph. Swipe or use the arrows to explore.
Install
Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
API Reference
ImageViewer
imagesreadonly LightboxImage[]—v-model?string | nullId of the open image, or null for closed; `v-model`.
—defaultValue?string | nullStarting open image id when `v-model` is not bound.
—label?string—class?string—thumbnailClassName?stringExtra classes for every thumbnail of the ready-made layout.
—#renderCaption?slotReplaces the caption line under the viewer; receives the open image.
—#default?slotCompose gallery and viewer parts instead of the default layout.
—labels?Partial<ImageViewerMessages>Override any built-in string.
—ImageViewerGallery
class?string—#default?slot—ImageViewerThumbnail
imageIdstringId of the image in the viewer's `images`.
—imageClassName?stringExtra classes for the thumbnail image.
—class?string—disabled?boolean—#default?slotOverlay drawn over the thumbnail image.
—ImageViewerCounter
class?string—ImageViewerCaption
class?string—#default?slotReplaces the caption text.
—ImageViewerClose
class?string—#default?slotReplaces the icon.
—ImageViewerPrevious
class?string—#default?slotReplaces the icon.
—ImageViewerNext
class?string—#default?slotReplaces the icon.
—ImageViewerContent
class?string—#header?slotCustom header; defaults to the counter and close control.
—#default?slotCustom footer; defaults to navigation and the image caption.
—Updated