Image banner
Audience: CMS editors and developers.
Type: ImageBlockBanner.
This banner shows one image with size and object-fit options.
This banner includes the common banner props.

Properties
id●required
string
CMS ID.
Image to render.
isFullsize●required
boolean
If true, render full width.
objectFit●required
'cover' | 'contain' | 'fill' | 'none'
CSS object-fit behavior.
maxHeight●
Maybe<string | number>
Optional maximum height. The renderer accepts a CSS value or a number.
Example
const banner: ImageBlockBanner = {
typename: BannerTypename.ImageBlock,
id: 'b_123',
title: null,
titleTag: 'h2',
titleAlign: 'left',
cssId: null,
cssClasses: null,
image: { id: 'img1', name: 'Image', imageRights: null, file: {} as any, mobileFile: null, alt: 'Alt', breakpoint: null, cars: [] },
isFullsize: false,
objectFit: 'cover',
maxHeight: null
};Last updated on