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.

Properties
id●required
string
CMS ID.
Required button group. Permitted actions: link and contactForm. Minimum: 0; no maximum.
sticky●required
boolean
Enable sticky positioning for the group.
stickyPosition●required
'top' | 'bottom'
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