Skip to main content
The group element wraps multiple elements into one unit. Combine it with if or loop to render or repeat the whole set at once. The type value is "group". When to use:
  • Apply conditional logic to multiple elements at once
  • Loop over multiple elements together
  • Organize related elements into logical sections
  • Create reusable element blocks
Basic example
Fields
CourierElement[]
required
An array of Elemental elements. They render together as one unit.
string | object[]
A condition that determines whether the whole group renders. Accepts a string expression or a structured condition array. See .
string
An expression that repeats the whole group. See .
string
A reference identifier for the group. See .
string[]
An array of channel names. The group renders only for the listed channels. See .
Examples and variants Conditional group Show or hide multiple elements based on a condition:
Looping group Repeat a group of elements for each item in an array:
Nested groups Group elements within groups for complex structures: