Skip to main content

Hide component properties from parent instance properties

  • May 26, 2023
  • 1 reply
  • 4723 views

image
Here is a Select input component I am working on. The label is a separated component with different states and content property for the text.

I want the parent component to show the “label content” whereas I don’t want user to be able to change the state of the label.

I think we can have a convention where the “_” or “.” in front of the property can make it “local” to the component and not propagate up to the parent components.

Thanks

This topic has been closed for comments

dvaliao
Figmate
  • Community Support
  • July 10, 2024

33 posts were merged into an existing topic: Expose nested instances → at property level

81 votes have been moved. 18 votes could not be moved because their users already voted in the other topic.


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