Image

A lazy image with placeholder and error state.

A river valley

With ratio

A misty forest

Placeholder (blur-up)

Mountains

Fallback

Broken image falls back

API reference

Inputs

PropTypeDefaultDescription
srcstring''Source URL of the full image to load.
altstring''Alternative text for the image.
ratiostring''CSS `aspect-ratio` reserved for the image (e.g. `16 / 9`).
placeholderstring''URL of a low-res image shown blurred while the full image loads.
roundedstring'rounded-lg'Tailwind class controlling corner rounding.
fit"contain" | "cover"'cover'How the image fills its box: `cover` crops, `contain` letterboxes.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.