Skip to Content

Button banner

Audience: CMS editors and developers.

Type: ButtonBlockBanner.

This banner shows a sortable group of link and contact-form buttons. The group has no maximum count. An explicit empty group shows no actions.

This banner includes the common banner props.

Button block preview

Properties

id●
string
required

CMS ID.

buttons●required

Required button group. Permitted actions: link and contactForm. Minimum: 0; no maximum.

sticky●
boolean
required

Enable sticky positioning for the group.

stickyPosition●
'top' | 'bottom'
required

Viewport edge used when sticky is enabled.

Example

const banner: ButtonBlockBanner = { typename: BannerTypename.ButtonBlock, id: 'b_123', title: null, titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, sticky: false, stickyPosition: 'bottom', 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