Renders an img tag with the src URL of the referenced CMS image object.
Props
attribute(String) – the name of thereferenceorbinaryattribute for the image. Default:blobcontent(Binary,Obj,Widget) – the image resource itself, or a page or widget holding areferenceorbinaryattribute for the image.- [New in 1.52.0]
ref(React.Ref) –React’s ref object or callback. Provides access to the underlying DOM element, enabling low-level DOM interactions. Default:undefined.
Remarks
- Other props are rendered as attributes of the resulting
imgtag. - If the type of the
attributeisreference, the image reference can be changed by editors.
Examples