While setting up my components for my component library, I came across an issue. A lot of my components contain instances of other components. To make sure our designers only use the correct components, we use the “_” before the names of nested components when publishing. But this causes the issue where properties of the nested components is hidden in the properties panel of the main component.
For example:
I have a “Dialog” component consisting of a header, a body text and an instance of a “dialog buttons” component. This “dialog buttons” component has multiple variants based on how many buttons should be visible and if they should be stacked or side-by-side. If I hide that nested “dialog buttons” component from publishing, it is not visible in the properties panel of the “Dialog” component when used outside the library. (And yes, I have checked everything from the “Expose nested instances” list)
So, is there a way to hide the “dialog buttons” component from the asset search, but have its properties available in the properties panel of the “Dialog” component?
Also, if I decide to add a different variant to the “dialog buttons” component, is there a way to publish it without having to “unhide” it, publish it, then hide the component and publish again?
Question
Hide from assets panel, but show in properties panel
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
