Hello 🙂
I’m currently designing an app prototype in Figma. I wanted to ask if it’s possible to have 3 buttons in one frame and depending on which one I press, a different variant appears in the next frame. Normally you would just do this without components with 3 different frames. But I don’t want to have to repeat the path 3 times afterwards, so this step should also be with components. Is it possible to do it like this, and if so, how do i do it?
Thank you very much for your help.
Page 1 / 1
Use a string variable.
varSel = “var1”;
Have variant names handy: var1, var2 etc.
To the instance property assign the variable “varSel”
On click of button 1
set variable varSel == “var1”
On click of button 2
set variable varSel == “var2”
and so on
So when you go to next frame, you will have the variant selected.
You can also explore this comment.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.