Skip to main content

Mutually Exclusive Boolean Properties โ€” Radio button boolean properties

  • February 28, 2025
  • 1 reply
  • 18 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?

1 reply

Daniel Zuba

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


Reply


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