Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Children: show props.children in the inspector component section #5686

Open
balazsbajorics opened this issue May 15, 2024 · 0 comments
Open

Comments

@balazsbajorics
Copy link
Contributor

Problem:
it feels weird to see name as a data cartouche in the navigator for <h2>{name}</h2>, but the inspector's component section is empty. we want the component section to be able to show anything which might require data picking!

proposed solution:
Show props.children as a separate entry at the bottom of the component section!

Question: should we show the component section with props.children for selected elements which would otherwise not show the component section, such as div, h1, h2, etc? I personally feel like yes we should

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants