Swapping Variants Using Variables | A Figma Tutorial

preview_player
Показать описание
Learn how to swap variants in an interactive prototype by using Figma variables. Apologies for the delay in releasing a video! Have been busy working on new courses.

0:00 An Introduction
0:46 Setting up the Variables
4:48 Adding Prototyping Functionality
Рекомендации по теме
Комментарии
Автор

Excellent, scrolling through a dozen videos: those with logic made it even more complex than the ones without. Your take is brilliant, well done! Following your channel now, you've got awesome design tips, and you're very clear. Kudos to you sir!

Shteuf
Автор

I would suggest setting the name of the variables to semantically match the options. So "Starting Active/Inactive" in this case would become "Notifications Yes/No". At 5:45 the action would read: "Set variable 'Notifications Yes' to inactive", which is much easier to maintain

SoulaORyvall
Автор

Very clear explanation! Thank you! I landed on your tutorial after looking through a bunch of others.

BhuvanaNarayanamurthy-rbmi
Автор

Around 2:22, I believe the issue isn't that the component instance is inside a frame, but it's the fact that it's inside another instance (of another component) named Form

SoulaORyvall
Автор

Thanks for the video!! I think in this case you don't need the second mode variables (Mode 2), if you delete them it should still work.

mirkocaccia
Автор

You guys are really good! Appreciate the videos very much. Going to get in touch with you through your channels.

chrisronan
Автор

When prototyping that way the radio label is excluded from the hit area, common UX practice is to include the radio label as trigger.

Underhills
Автор

Thanks a lot for the tutorial. I tried to do a radio button exercise with 4 multiple choices and it was kind of hard. Although variables are created to reduce the number of variants, due to Figma's limited capabilities, I find that it's just easier to create all possible variants, assign a string variable that matches with one of the variants, use "set variable" to go from variant A to variant B upon clicking.

djashawe
Автор

I would like to do this based on the game inventory checkbox. There are five images, each has a state before clicking and after clicking .
How do I create so that the selected image takes the post-click state, and the previously selected image turns into the pre-click state?

MCbyGracjan
Автор

Is there any way to act on multiple options, such as a color picker? with swatchs? Choosing one color out of 12 options...

AmirNoyman
Автор

The issue I'm facing is that when adding the component inside another component, the variable for the state gets removed. Any suggestions?

guillaumegoulet
Автор

Could you do dropwdown lists that swap variant based on selection of another dropdown list?

ossimatasaho
Автор

I have created two different variable for it ( i have make two radio button on click only one of them clickable for single time to change its stage )

sachinroy
Автор

Cant we just make these two options one component (with two states - x highlighted, y highlighted) instead of linking 2 separate components through variables?

MusabNaveed
Автор

Thanks for the video, but adding two variables (and with modes) looked a little too complicated, no? Maybe I just missed something, sorry. Anyway, it's a bummer there is no variable scoping so have to expose internal kitchen to the top level :-/

ArtiomNeganov
Автор

Do you really need modes to achieve that? Seems like you're just manipulating values of variables; there is always the same mode selected. Or did I miss something?

marcinukleja
Автор

i think creating local variables is only for paid figma version ... how can learners do it :( sad

Rahul_Lata_
Автор

This is unnecessarily complex. There is no reason to use modes and boolean variables make more sense for this use case.

jjung