An <img> wrapper that defers loading until the image enters the viewport using IntersectionObserver.
Parameters
__namedParameters: LazyImageProps
Returns Element
A lazily-loaded <img> element
Description
When lazy is true (default), the src is withheld until the element scrolls into view, reducing initial page load. Falls back to eager loading when lazy={false} or when IntersectionObserver is unavailable.
An
<img>wrapper that defers loading until the image enters the viewport usingIntersectionObserver.