Skip to main content
Question

Applying string variables to variants INSIDE component set

  • September 3, 2023
  • 4 replies
  • 801 views

Hey there!

We can add STRING variables to variants when they out OUTSIDE a component set but, whenever adding them to a component set – ANY component set, the variable gets removed.

The issue I have with this is that when I prototype a component to CHANGE STATE from one state to another with conditionals, it works until I add the component to another state, where it detaches the variable, and breaks the conditional prototype.

Any workarounds to this?

Outside component:

This topic has been closed for comments

4 replies

Accidentally shared without adding images and can’t find edit button.

Outside component:


Inside component:


Michael_Staton

Yeah, I want to raise this to the Figma team. String variables would be amazing if we could assign them inside components and component instances. So, let’s say I have 6 Titles. I make a Title Component, I want to assign variables to each instance of a component. If anyone sees this thread and knows if that’s possible let me know.


Michael_Staton

For the record, I answered this for myself eventually. You set the data source to a Variable before you make it a component, then the component instances will let you change the Variable.


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