Applying string variables to variants INSIDE component set

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:

2 Likes

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

Outside component:

Inside component:

1 Like

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.

1 Like

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.