GridWrapperBanner
Layout banner that renders two columns, each containing nested banners.
Includes the common banner props.
Props
id●required
string
CMS id.
fullWidth●required
boolean
If true, wrapper renders full width (no x padding).
breakpoint●required
'mobile' | 'tablet'
Breakpoint at which columns are side-by-side.
columnsWidth●required
'FIFTY_FIFTY' | 'SIXTY_FORTY' | 'FORTY_SIXTY' | 'SEVENTY_THIRTY' | 'THIRTY_SEVENTY'
Column width ratio left/right.
leftColumnAlign●required
'TOP' | 'CENTER' | 'BOTTOM' | 'STRETCH'
Vertical alignment for the left column.
rightColumnAlign●required
'TOP' | 'CENTER' | 'BOTTOM' | 'STRETCH'
Vertical alignment for the right column.
reverseOnBreakpoint●required
boolean
Swap column order from the breakpoint upwards.
leftColumn●required
AnyBanner[]
Banners rendered in the left column.
rightColumn●required
AnyBanner[]
Banners rendered in the right column.
Notes
leftColumnandrightColumncan contain any banner type, including anotherGridWrapperBanner.- Consumers should guard against overly deep nesting.
Example
const banner: GridWrapperBanner = {
typename: BannerTypename.GridWrapper,
id: 'b_123',
title: null,
titleTag: 'h2',
titleAlign: 'left',
cssId: null,
cssClasses: null,
fullWidth: false,
breakpoint: 'tablet',
columnsWidth: 'SIXTY_FORTY',
leftColumnAlign: 'TOP',
rightColumnAlign: 'TOP',
reverseOnBreakpoint: false,
leftColumn: [{ typename: BannerTypename.Textblock, id: 'x', title: null, titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, markdown: ['Left'], fullwidth: false } as any],
rightColumn: [{ typename: BannerTypename.Textblock, id: 'y', title: null, titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, markdown: ['Right'], fullwidth: false } as any]
};