Skip to main content

BlockImageData Object

Description

Data configuration for an image block.

Declaration

type BlockImageData {
ref: ID
uri: String
format: String!
fit: ImageFit!
maxWidth: String!
to: String
}

Fields

NameTypeDescription
refIDReference to the media file.
uriStringURI to the image file.
formatString!Media format to use (e.g., "banner", "square", "thumbnail").
fitImageFit!How the image should fit within its container.
maxWidthString!Maximum width for the image (e.g., "100%", "500px").
toStringURL to navigate to when the image is clicked.