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?