ContentImage renders images that participate in document flow - the image controls its own dimensions and pushes surrounding content out of the way, just like a paragraph or heading. No object-fit styling is applied; the image renders at its natural aspect ratio.
Use ContentImage when the image is the content: article photos, product shots, thumbnails, inline figures, or any image whose intrinsic size matters to the layout.
The image below flows naturally within the article body. It renders at its intrinsic aspect ratio and the surrounding text wraps around it - the image controls its own size.
This is a ContentImage - use it when the image is the content: article photos, product shots, thumbnails, or any image that participates in document flow.
Art-directed content images use <picture> with multiple sources. The imageClassName prop targets the inner <img> element while className applies to the <picture> wrapper. For more on Art Directed images and the <picture> element, see here.
Bypass the planner-generated srcset with a pre-built string (e.g. from a CMS). Width descriptors are validated against resolvable sizes - if sizes cannot be resolved, the override is discarded with a dev warning.
A non-decorative image with no alt text triggers a dev warning. Either provide an alt prop, populate metadata.alt on the source, or mark the image as decorative.
An image without width / height triggers a dev warning. Pass suppressMissingDimensionsWarning for intentionally dimension-free images such as SVGs or data URIs.
A profile with srcSetWidths but no sizes causes the planner to discard the generated srcset and emit a dev warning. Provide sizes on the profile or via the sizes prop.