Loop
Last updated
Last updated
The Loop component lets you easily repeat a layout based on dynamic data.
When creating a Loop, first give it a title. This title becomes a variable that expects an array of objects in the payload. The Loop repeats your layout according to the number of items in this array.
If your layout is:
Your payload should look like this:
This results in your layout repeating twice:
You can also create nested loops by stacking them. This allows for more complex data structures.
Expected payload for nested loops:
Resulting on this final result: