Grouping Components works a bit differently in Responsive Builder than it does in Legacy Builder.
Skill Level: Intermediate
- 1.When you place a rectangle, image, or ellipses on a screen, it acts as a sort of container for other things. You can drag and drop other components into it to create an Auto-Group.
- 2.You can access the components inside the "container" by double-clicking on the component you want to select. Note that you can also have nested rectangles, i.e. rectangles inside of rectangles.
- 3.Components within a rectangle will scale with the rectangle automatically, unless the component scaling is set to Stays Fixed.
- 4.The yellow bounding box of a rectangle extends only to the edges of the rectangle.
- 5.In order for a component to be considered "inside" the rectangle, the component's yellow borders must be fully inside the rectangle's borders.
- 6.Rectangles do not appear in the component tree as a group, but can be opened up like a group can within the component tree to add or remove components.
- 7.Because rectangles are not technically considered groups, the components inside them do not have the option to Scale with Group, however Scales with Parent does ensure that the components scale as their parent rectangle scales.
NOTE: You cannot ungroup rectangles. If you need to remove components from a rectangle, you can click on the Component and drag it out of the Auto-Group.
- 1.You can turn anything into a group, even a single component, another group, or a rectangle with components inside it.
- 2.The green bounding box of a group extends out to include any component within that group, regardless of their location on screen. Group bounding boxes can be quite large if components within the group are positioned far apart.
- 3.When a component is added to a group, the group's green border extends to include the newly added component.
- 4.You can Add or Remove a component to a Group by dragging it into or out of the green bounding box.
- 5.Groups are useful for applying layout constraints to several components or groups that need to maintain not just their own scaling, anchoring, and positioning, but also the components' settings relative to one another. Notice in the animation below, that the pricing cards tend to get closer and farther apart as the screen scales. When the pricing card rectangles are placed into a group, however, the spacing between them stays the same as the screen scales.
Click the animation to enlarge it.
This is an excellent question, however it's not really an either/or answer because both groups and rectangles serve a similar purpose. The main reason to pick rectangles over groups would be to add styling to the background such as Background Color or Border.