Skip to main content

I’m building out a component library and it occurred to me that having the ability to add conditions to Boolean properties would be very helpful in reducing the number of instances needed.


Case

I have an input field that can have many Boolean elements such as right icons, prefixes, suffixes, character counters, helper text, etc.


Realistically, some of these properties cannot exist together at the same time, such as a right icon (like a dropdown icon) and a suffix or character counter. If a user was able to enter conditions on a Boolean element such as:


if set to “True”, set ,“Boolean property name”, “Boolean property name”] to “False”

example for “has RightIcon” Boolean property: if set to “True”, set i“has Prefix”, “has CharacterCounter”] to “False”

(excuse the syntax errors if any. I’m no programmer)


Obviously, this could be flexible to automatically enable or disable other properties if a certain Boolean property is set to True or False.

Hi Team,

I had a need of feature which I think can be helpful addition to figma.

as a user I should be able to assign same boolean property to two object and I should be able to control if I want to assign NOT of the value so if I want to make something like where we show either of one element this will be helpful


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.