SimpleTileCardsBanner
Collection of simple tiles/cards.
Includes the common banner props.
Types
type SimpleTileItem = {
id: string;
image: ImageProps;
description: Maybe<string>;
linkText: string;
url: DynamicLink | null;
};Props
id●required
string
CMS id.
items●required
SimpleTileItem[]
Tiles rendered in order.
Notes
- If
urlis null, the tile is rendered non-clickable. - Use
ImagePropsfor the tile image.
Example
const banner: SimpleTileCardsBanner = {
typename: BannerTypename.SimpleTileCards,
id: 'b_123',
title: 'Topics',
titleTag: 'h2',
titleAlign: 'left',
cssId: null,
cssClasses: null,
items: [
{
id: 't1',
image: { id: 'img1', name: 'Topic', imageRights: null, file: {} as any, mobileFile: null, alt: 'Topic', breakpoint: null, cars: [] },
description: 'Short teaser...',
linkText: 'Open',
url: { label: 'Open', isAbsolute: false, url: '/topic', query: [] }
}
]
};