Nested blocks Overview
You can have any number of repeating blocks inside a content block.
For example a Gallery of images or a "Features" section of a website.
You can have an infinite number of nesting levels of bricks.
How does it work
You need two things to make it work:
- Use a React Bricks
<Repeater>
component where you need a repeating block - Set up the
repeaterItems
property in the brick'sschema
Optionally, you may also want to:
- Set
newItemMenuOpen
totrue
orfalse
on the brick's schema to decide if you want the "Add new..." menu open or closed by default. If you don't set this value, the default is open, if the number of repeaterItems is less or equal to 4, closed otherwise. - Set default props for the repeating items to have an initial set of nested blocks when a new block is created