Hey, welcome to the forum!

I’d approach it as follows:

  1. Have an option set for your options. For example, ‘Gender’ with options for Woman, Man, and Non-Binary.
  2. Display these in a Repeating Group of Genders.
  3. Inside each RG cell, create a group that is rounded and has a text inside it (this is your chip).
  4. Use a state or hidden group variable that is of type Gender. When a chip is clicked, run a workflow that sets the state to Current cell’s Gender / Parent group’s Gender, only when Current Cell’s Gender is not state’s Gender (the currently selected gender).
  5. Have another workflow that resets the state when the Current Cell’s Gender is the state’s gender (it’s already selected).
  6. Use conditional formatting (e.g when Current cell’s gender is state’s selected gender) to handle the colour changes in the text and border

You may need a custom event that returns yes/no for ‘is the current cell already selected’ and use that for working out whether to set a state or reset it - try it out and use the debugger if you have issues.