Skip to main content
Question

Is there a way to add an element to instance of a component used in a different file

  • February 4, 2021
  • 4 replies
  • 3524 views

Vaibhav_Gupta

I have a file for design components and it has a card element with 2 buttons in it. Recently, I came across a case where I needed 3 buttons in that card. Now I don’t want to increase the number of buttons in the parent file as this is a one-off case. However, I cannot add anything to the instance of the card element in the file I’m working in without detaching it from the original.

I’ve faced the same need across multiple elements and couldn’t find a way to do it. Need help.

4 replies

Steven
  • 122 replies
  • February 4, 2021

There is no way to do it.

The little hack would be to access the main component, put the element in it and hide it. This way you can make it visible in the instance where you need it.


Vaibhav_Gupta

That’s a good way. However, is there no other way to this issue? Maybe a plugin?


Steven
  • 122 replies
  • February 4, 2021

I don’t think so


Bruno_Figueiredo

Not really.

Any component or variant asumes that you have all the elements there for the needed build of such component, so if you don’t have a thid button, you need to break teh component to add one or, as Steven said, go back and add the neede components to the master o variant.


Reply


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