Skip to main content
Question

Question about Component and Variable

  • March 13, 2025
  • 1 reply
  • 11 views

gabriel.Sol

Hi, i have a question that i think is pretty dumb but i can’t figure out a solution.

I was working on a interactive dropdown component that i want to be able to use across multiple design.
Each text/option in this dropdown is tied to a default variable (option1 is a text for option1), and i want to be able, when i copy and paste this dropdown to a new file, to be able to edit those variables values to make modifications to my dropdown.

I published my component to a library, and imported this library to a new file to test my component, but when i opened my variables, it showed as empty, and my component is still “Linked” to the original variables.

What workflow would be the best to fulfill my need? (create a dropdown where each value is linked to a variable, and be able to copy and paste this “default” dropdown to any file i need and make modifications based on the context)

1 reply

Nate_G
  • Power Member
  • 180 replies
  • March 13, 2025

If those option text variables are set in your main library you can’t change them within files linked to that library, as those variables are stored in your main library. So to change your option text variables from a file that is linked to that library, you would have to go back into your main library, change the option text variable(s) to what you want, republish the library, and then update the file — that doesn’t give you much freedom with that component to easily change the options.

There are other ways you could set up your dropdown without using the variables approach.


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