Skip to main content

Mutually Exclusive Boolean Properties — Radio button boolean properties

  • February 28, 2025
  • 2 replies
  • 118 views

Hg_Msnc

Hi everyone,

I often run into an issue when creating components: I want certain properties to be mutually exclusive.

For example, inside a component (most of the time it’s a product card), I have Block A, Block B, and Block C, each controlled by a boolean toggle. If I want to switch from A to B, I have to manually turn B on and A off. This quickly becomes tedious, especially with multiple options.

While variants are an alternative, they become impractical when dealing with many of this mutually exclusive choices, and they add too much complexity and file size.
Conditional logic could also work for this but it is such a pain to do for this simple and recurent use case that I consider it as not a viable option for a day-to-day workflow.
 

Feature Idea:
It would be great to group boolean properties so only one can be active at a time—like a set of radio buttons instead of multiple independent toggles.

Would this help your workflow too? What do you think?

2 replies

Daniel Zuba
  • New Member
  • March 11, 2025

Up this feature, it would simplyfie a lot building components, if we would be able to make work boolean similar to dario button behaviour.


Walker_Amanda

I still prefer toggles to radio buttons but it would be incredibly beneficial to be able to link boolean toggles together as mutually exclusive - so toggling one on immediately toggles the others off (if they’re linked). The workarounds for this right now are not ideal.