Skip to main content

IMGElement

export
function IMGElement(
ย ย props: IMGElementProps
) : ReactElement

A component to render images based on an internal loading state.

Remarks

This component will attempt to draw a box of paint dimensions before retrieving the physical dimensions of the image to avoid layout shifts. See also โ€‹useIMGElementState, โ€‹IMGElementContainer, โ€‹IMGElementContentSuccess, โ€‹IMGElementContentLoading and โ€‹IMGElementContentError for customization.

Parameters#

props#

required