Mutually exclusive property triggers

Component properties are amazing. Having recently come from Adobe Xd, this makes things so much easier. I find myself often coming up against the same issue which could be sped up whilst building and, more importantly, using components. Say I have a simple text input field which has text inside but in cases where it is empty (i.e. no text has been entered), I want a validation icon to appear.
I could have variants for this, but for complex components, there would be so many different variants.

What would be great is if I could set the text visibility property to true, and the validation icon visibility property would be set to false automatically so that neither show at the same time. Currently, I have to turn one off and the other on manually. This would be useful for so many components where you can say If Property A is on, then Property B is off and vice versa.

If there is a way of doing this already or an effective work around Iā€™d love to hear about them!

2 Likes