Within a component, can a layer share both a a text and boolean property?

With the changes to component building, I have some instances where I have an editable text layer that also has the option to be hidden, depending on the context. I know the solution would be to create a variant, but given we have boolean properties, can that layer share both a boolean property and text property? Right now I have to label the same layer differently for both properties. Here’s the component I’m working with:

Select the text and add a boolean property from the Layer section.
image

@Klesus Yes, that’s what I’ve done. But the issue, as I captured in the screenshot, is that it forces me to name the property something else (clients for the text property, clients2 for the boolean). I want the “clients” property to share the same name and property.

Alright I’ve misunderstood, and I don’t know why you’d want that but anyways…
When I try that myself it works even though I get warnings:
image
But it still works
image
Maybe it won’t work if I restart or something, but are you saying you can’t do this?

Well, I want that because of the use case of this component and the context it’s being used. There are instances where that specific content won’t show and others where they would. In the context that it does show, it needs to have different content within it as it’s a list.

No, I can’t do this. With the warning, it’s not letting me.

You don’t need properties with the same name for that though. So I’m still confused as to why that’s important?

In my example, the name of that layer is clients. So the property should be named clients. Because the text should only be clients. And the Boolean property would also be named clients. It’s for our own organization within the design system.

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