ImageComponent
Callable
Parameters
props: PropsWithChildren<VisualDataBlock<ImageBlock> & ImageOptions>
VisualDataBlock object. See ImageBlock to learn the type of data this component receives. Also accepts an optional
sizes
string prop.optionalcontext: any
Returns null | ReactElement<any, any>
VisualContent renderer component that renders
image
type blocks as a responsive image along with its caption (if defined). Optionally wraps the image in an anchor if a link is defined in the content.See the guide page on the VisualContent component to learn how to customize block renderer components like this one.
This component also supports an optional
sizes
prop to provide better image responsiveness, see the guide page on responsive images to learn more.