Skip to Content
ReferenceBanner catalogGrid layout banner

Grid layout banner

Audience: CMS editors and developers.

Type: GridWrapperBanner.

This layout banner shows two columns. Each column contains nested banners.

This banner includes the common banner props.

Properties

id●
string
required

CMS ID.

fullWidth●
boolean
required

If true, the wrapper uses the full width without horizontal padding.

breakpoint●
'mobile' | 'tablet'
required

Breakpoint at which the columns appear beside each other.

columnsWidth●
'FIFTY_FIFTY' | 'SIXTY_FORTY' | 'FORTY_SIXTY' | 'SEVENTY_THIRTY' | 'THIRTY_SEVENTY'
required

Ratio of the left column width to the right column width.

leftColumnAlign●
'TOP' | 'CENTER' | 'BOTTOM' | 'STRETCH'
required

Vertical alignment for the left column.

rightColumnAlign●
'TOP' | 'CENTER' | 'BOTTOM' | 'STRETCH'
required

Vertical alignment for the right column.

reverseOnBreakpoint●
boolean
required

Swap the column order at the breakpoint and at larger widths.

leftColumn●
AnyBanner[]
required

Banners rendered in the left column.

rightColumn●
AnyBanner[]
required

Banners rendered in the right column.

Behavior and limits

  • leftColumn and rightColumn can contain any banner type, including another GridWrapperBanner.
  • Limit nesting depth in code that uses this banner.

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] };
Last updated on