Skip to content

MediaLightbox ​

Thumbnails that open a large view in a native dialog, with the keyboard and captions.

ts
import { MediaLightbox } from '@zairakai/vue-components/Medias'

Usage ​

vue
<MediaLightbox />

Props ​

NameTypeDefaultDescription
idstring
classstring
itemsarray[]The images: { src, alt, caption, srcset, thumbnail }.
modelValuebooleanundefinedWhether the large view is open.
indexnumberundefinedThe index of the image shown in the large view.
thumbnailsbooleantrueShow the thumbnails that open it. Turn off to open it from your own buttons with v-model.
loopbooleantrue
titlestring'Image viewer'
previousLabelstring'Previous image'
nextLabelstring'Next image'
openLabelstring'View {alt}'

Events ​

NameDescription
update:modelValue
update:index

Slots ​

NameDescription
caption

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.