Skip to Main Content
Builder.io Ideas
Created by Florian
Created on May 5, 2022
Merged idea
This idea has been merged into another idea. To comment or vote on this idea, please visit PROD-I-134 Optionally render BuilderBlocks without wrapper element for its children.

Optionally render no div/span wrapper within BuilderBlocks component Merged

The React component BuilderBlocks always wraps its children within a div or span. However to make things more predictable to use in different contexts and easier to style, it would be useful to have the option to omit this wrapping element.

There even seems to be a comment within the component's code hinting at such a change: https://github.com/BuilderIO/builder/blob/40f24ffa48cf602bb6e7e64e0bb967e148124b19/packages/react/src/components/builder-blocks.component.tsx#L97