Skip to Content
BannersSimpleTileCardsBanner

SimpleTileCardsBanner

Collection of simple tiles/cards.

Includes the common banner props.

Simple tile cards banner preview

Types

type BannerListItem = { id: string; document: KeystoneDocument; nativeIcon: string | null; image: ImageProps | null; link: DynamicLink | null; };

Props

id●
string
required

CMS id.

items●
BannerListItem[]
required

Tiles rendered in order.

Notes

  • If link is null, the tile is rendered non-clickable.
  • The image is optional.
  • Use ImageProps for 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', document: [ { type: 'heading', level: 3, children: [{ text: 'Open' }] }, { type: 'paragraph', children: [{ text: 'Short teaser...' }] } ], nativeIcon: null, image: { id: 'img1', name: 'Topic', imageRights: null, file: {} as any, mobileFile: null, alt: 'Topic', breakpoint: null, cars: [] }, link: { label: 'Open', isAbsolute: false, url: '/topic', query: [] } } ] };
Last updated on