How to: by click on button change state of panel using variant

Hi all,

I’m transition from using a lot of other tools to Figma and run into a (probably) beginners question. How can I set the logic that clicking on a img/btn changes the state of a panel (component with text and image). The element is set on a bigger page Attached a really basic example wireframe of the element (so not the whole page around it).

Thanks for your reply. Unfortunately the example in that post doesn’t work for me :frowning:

I meant the example file that was attached to that post

Figured it out with help of the image. Thank you

1 Like