Skip to content

Group

Overview

Group allows you to prevent columns from stacking on mobile. To do so, wrap the columns inside a mj-group tag, so they’ll stay side by side on mobile.


Parameters

ParameterParameterValid BlocksRequired
Children Children component Group Component Block Group No
Style Sets Optional list of Email Style blocks to apply to this block Text Block Group No
Custom CSS Classes Optional space-separated list of CSS classes to be applied to the element. Intended for use with EmailCSS blocks. Text Block Group No
Width The width of the element. Unit Value Block Group No
Background Colour The colour of the background of this block. Colour Block Group No
Vertical Alignment Vertical position of the element within its container. Text Block Group No
Direction Whether the text direction is left-to-right or right-to-left. Text Block Group No