Skip to main content

Autolayout in component instances

  • July 21, 2022
  • 1 reply
  • 314 views

Mariana

Hello,

This is something that has been getting in my workflow that I think doesn’t work as well as I thought it would.

There are certain components that its definition is mainly based on structure and auto layout. If we take into consideration a dropdown, for example, its component definition should be the dropdown background with a couple of dropdown items just so the designer would know the structure of the dropdown, and then would adjust the component to the use case in question.

However, if I want to define a dropdown component with only 2 dropdown items I cannot add any more in its instance, which is kind of a bummer because I want a component to be as generic as possible so the product designer can adjust them to their needs, and at the moment that’s not possible.

The “temporary” solution our team has found is to create the generic component, and then having a file with a UI library with every possible instance of the dropdown (because these components can also be reused in different files/features). This solution is not very scalable because if we have 50+ possibilities of dropdown it’s very difficult to maintain this and it’s really easy for that number to increase immeasurably.

It would improve our processes and lives a lot if it was possible to adjust component instances using the autolayout defined in the component, like adding elements, or even adjusting the autolayout properties

This topic has been closed for comments

1 reply

  • 0 replies
  • October 19, 2022

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings