Skip to Content

Headline banner

Audience: CMS editors and developers.

Type: HeadlineBlockBanner.

This banner shows a headline, a background image, and a button group.

This banner includes the common banner props.

Headline block preview

Types

The actions use BannerButtons. The group permits zero to three link or contactForm actions.

Properties

id●
string
required

CMS ID.

background●required

Background image.

buttons●required

Required ordered group. Maximum: 3 actions. Each item has its own text, style, and optional theme.

Example

const banner: HeadlineBlockBanner = { typename: BannerTypename.HeadlineBlock, id: 'b_123', title: 'Need help?', titleTag: 'h2', titleAlign: 'center', cssId: null, cssClasses: null, background: { id: 'img1', name: 'Hero', imageRights: null, file: {} as any, mobileFile: null, alt: 'Background', breakpoint: null, cars: [], }, markdown: [], buttons: { items: [ { id: 'offers', action: 'link', text: 'View offers', style: 'primary', theme: null, url: { label: 'View offers', isAbsolute: false, url: '/offers', query: [], }, contactForm: null, }, ], align: 'left', width: 'intrinsic', overflow: 'wrap', }, };
Last updated on