Change active variant on component B when component A is clicked

I’m wondering if there’s a way to define a change of variant on a component by clicking on another one ?

For instance, in this example, I have a button and a rectangle component that has 2 variants : blue and red.

I want to be able to switch from the blue variant to the red one by clicking on the button (on the same screen).

I know it can be done by making 2 screens and linking them together or by adding an overlay, but these 2 solutions are either hard to maintain on real bigger projects or pose some problems (like the overlay preventing from clicking anywhere else while it’s open).

Any ideas on how to di this ?



This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.