Skip to main content

Expose instance swap properties from nested components

  • February 26, 2024
  • 0 replies
  • 292 views

Thomas_Nabelek

I have a sidebar menu list item component with three variants: Default, Hover, and Selected. Each of those has icon and text nested components, and each of those has their own properties.

icon has instance swap and Boolean properties:
image

text has instance swap, Boolean, and text properties:
image

I have exposed the properties of icon and text to my sidebar menu list item component. However, the instance swap properties are not exposed to the top-level component/instance:
image

This is annoying because, rather than being able to set all of my properties for my top-level instance in one place, I have to drill down into it to be able to set the instance swap property for the sub-instance.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings