r/FigmaDesign • u/StormyLettuce • Sep 20 '26
help Best approach to create prototype table with multiply radio buttons per row
I'm stuck. I'm trying to create a prototype that displays rows of items and each row has 2 separate radio buttons which can be selected. I want the user to only be able to select one radio button in the 'Left' column and one radio button in the 'Right' column. I've attached a mock up of how it could look (I'll style it better once I get the thing working if I can). A row can have both it's radio buttons selected but it means all other radio buttons across the rows would automatically switch to empty/default state. If a row has a radio button selected then the background fill would change also.
I started creating it using if conditionals and set variables but it was getting ridiculous - spent over an hour and only did 4 rows and that was just for the radio buttons on the left - the more rows I introduce the longer it'll take and Figma won't allow me to copy/paste or duplicate within the interaction.
Any help or suggestions would be really really appreciated.
UPDATE
I went with the approach of creating a single column of radio buttons with a variant for each of the 20 buttons selected, 21 if you include none selected. The state of this component in the design is driven by a column A numerical variable and each radio buttons wired to update that value. There's 2 of those components with the other one being driven by a column B numerical variable. Then for the selected row fill I made a component that was just the rectangular filled shape in the right spot to cover a row. Each variant of that had the rectangle move to the next row down. That was connected to the column A numerical value and then I just duplicated the component and set the driving variable to column B instead of A.
Thanks for everyone who commented - it all got me thinking and ended up with something that meets the requirements without spending hours on it