Skip to Main Content
Builder.io Ideas

Optionally render BuilderBlocks without wrapper element for its children

In order to use the React component Builder Blocks more consistently
and predictably in different contexts – especially styling, it would be useful to have the option to render it without the unavoidable span/div that it uses to wrap its child elements.

This change also seems to be suggested within the component's code as a TODO.

  • Attach files
      Drop here to upload
    • zak pav
      Reply
      |
      May 13, 2022

      Best idea ever! 👍

    1 MERGED

    Optionally render no div/span wrapper within BuilderBlocks component

    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 ...
    Florian almost 3 years ago in Builder for Developers 0
    1 MERGED

    Optionally wrap BuilderBlock (React) with Fragment instead of div/span

    The React BuilderBlock component always wraps its children in a span or div. However sometimes it might be preferable to have no wrapping element whatsoever. This would make styling of nested components easier and more predictable. And there seems...
    Florian almost 3 years ago in Builder for Developers 0