Skip to content

MediaLazyImage ​

An image that loads late and asynchronously, with a placeholder, a fallback and an error state.

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

Usage ​

vue
<MediaLazyImage src="…" alt="…" />

Props ​

NameTypeDefaultDescription
idstring
classstring
srcstringrequired
altstringrequired
srcsetstring
sizesstring
widthstring|numberGiving the size avoids the page jumping when the image arrives.
heightstring|number
eagerbooleanfalseLoad now instead of when it comes near the screen (the first image of a page).
fallbackstringThe image shown if the real one fails.
fitstring'cover'

Events ​

NameDescription
load
error

Slots ​

NameDescription
placeholder
error

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.