Figma Support Forum

It is necessary that when you press one button, the other changes color

Help! There are 3 buttons. One is gray (pressed) the other is black. I made them interactive with 3 layers (the layers just change when you press the buttons). But how can these buttons be made in one layer with Figma Variants, or is this how it is created?