Type identifier:
imageCategory: Experience Blocks
Media block for rendering images. Supports URL/file/datum-backed sources, explicit dimensions, replaced-element presentation options, and optional state overrides.
The Image block has these required fields, in addition to the shared properties:
type: "image"srcwidth: numberheight: numberOptional image-specific fields:
altplaceholderSrccssWidth, cssHeightobjectFit, objectPositionstatesProperty | Type | Required | Notes |
|---|---|---|---|
|
| Yes | Shared block identifier. |
|
| Yes | Block discriminator. |
| URL, | Yes | Media source. |
|
| No | Accessible alt text. |
|
| Yes | Intrinsic/render width. |
|
| Yes | Intrinsic/render height. |
| URL, | No | Placeholder media source. |
| CSS size | | No | CSS width override. |
| CSS size | | No | CSS height override. |
|
| No | Replaced element fit behaviour. |
|
| No | Replaced element position. |
| Array of states | No | Optional state-specific overrides. |
The Image block also supports the shared style/layout/data props.
State entries follow the shared state shape and support partial image overrides.
Image blocks do not support pseudo-state overrides. Media states are available; see Experience States and Print Layout.
{
"id": "img-1",
"type": "image",
"src": "https://cdn.example.com/image.jpg",
"alt": "Example image",
"width": 800,
"height": 600
}