Ability to don't-export component instance children

What do you want to achieve?

I’d like the ability to add placeholder widgets to a screen, as children of a component, but not export them. But children of a component, including widgets not part of the component, do not have the don’t-export flag available.

Do you see alternative options and workaround to achieve it?

There are other ways, like exporting the child objects and deleting them on screen load.

Mention some use cases

Here’s an example, using two components:

  1. labeledContainerComponent: its’ got a label, and a container and some flexflows setup to hold child widgets
  2. turtleComponent - it’s a simple demonstrator that gets held as a child component to a labeledContainerComponent

Screenshot:

SquareLine.zip (52.1 KB)

Hi, thank you for the feedback and the detailed example. We agree that this is a valid use case, and we’ll consider how this functionality could best be implemented.

1 Like