While the BOOLEAN prop type is gaining traction, many aging components still use VARIANT props to show hide content, and in many cases this remains the preferred and possibly only way to associate displayed content (like an error) with a prop that also controls visual attributes.
While the artwork does reveal this difference visually, it's not denoted as a difference in exhibit content.
Solution
Add an attribute denoting the difference in the layer's .visible property.
Example
Github primer
Note the extra subcomponent line of error/success
Related to
7
9
Problem statement
While the
BOOLEAN
prop type is gaining traction, many aging components still useVARIANT
props to show hide content, and in many cases this remains the preferred and possibly only way to associate displayed content (like an error) with a prop that also controls visual attributes.While the artwork does reveal this difference visually, it's not denoted as a difference in exhibit content.
Solution
Add an attribute denoting the difference in the layer's
.visible
property.Example
Github primer Note the extra subcomponent line of error/success