Of course I can create an active and deactive state in a variant set, and wire those up. But what can I do to allow one menu item to set all the other menu items to inactive? I know how to do this the old way but I want to avoid a bowl of spaghetti. (Let's pretend I have 50 menu items and some that have secondary nested items, and I frequently need to add or subtract items from the menu.) Here's a link to a file I'm working on: https://www.figma.com/design/5DX8gETFV0ZnSPaknfTioS/Untitled?node-id=2-3&t=NDfh9kZFlMcwjmpM-1
#Set inactive state on all menu items except the currently selected item
3 messages · Page 1 of 1 (latest)
Not sure if you’ve found a solution to this yet but you can make use of Conditions and variables. You set each menu item to a variable and then use an item to change the state of that variable which in returns triggers a state change for all items that has that variable
I still have not found a solution. Maybe I'm overestimating Figma here, but using your approach, I would need a list of 50 variables if I had a menu with 50 items in it. I want one super component (or maybe two with one that is nested) that will know what to do without adding an additional variable or extra logic.