Skip to main content
Question

Clicking a button unchecks another button


Gautham

Hello all, I’m trying to make two buttons, when one is clicked the other unselects and vice versa. Is it possible to make this interconnectedness among variants?

This topic has been closed for replies.

4 replies

Yoav_Barak

Not as far as im aware.
You can create a component with 2 varians containing the 2 buttons in both states.
Very similar to the radio buttons group instructions:

Figma Interactive Components | Radio Button|Figma Interactive Components | Radio Button

Gautham
  • Author
  • 1 reply
  • April 2, 2022

Thank you so much, Yoav! This is what I was looking for!


Carlos_Gasca1

im also looking for a simmilar thing: i have a use case, where im doing a filter, lets say by color, so when i click a button inside a component, i want another component living in the same frame to change to a different state.

almost like if a component can “listen” to what’s happening on other components and change its state based on what this other component “said”

i dont think im the only one looking for a plugin or something like that just to avoid having even more frames and states…


  • 0 replies
  • May 5, 2022

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings