Figma Support Forum

How to create a component with two frames that interact with each other


I’m trying to make the second frame (white box) interact with the first frame (blue box) when I add one or more lines. Is there a way to make this happen?

Hi @Raul_Barrera, convert your Frame 2 and Frame 3 to Auto Layout, then set the Fill container vertically for the nested objects.

Do i group them first and then do autolayout?

If you need additional nesting, then yes, you can first group and then add Auto Layout to the nested frame. You just need to follow a structure like this:

Group
  Auto Layout Frame
    Input (Auto Layout with Fill container vertically)
    Cost (Auto Layout with Fill container vertically)

Thank you so much :slight_smile:

This topic was automatically closed after 30 days. New replies are no longer allowed.