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

Parser to check if component accepts children #73

Open
zachintosh opened this issue Dec 12, 2019 · 1 comment
Open

Parser to check if component accepts children #73

zachintosh opened this issue Dec 12, 2019 · 1 comment
Assignees
Labels

Comments

@zachintosh
Copy link
Collaborator

We need a parser that somehow checks if a component accepts children. React-docgen does not pick up if it uses children unless listed as a prop-type, for some reason.

This would be easiest to use if it added a boolean to the component meta for whether or not it accepts children.

This way we can tell if we need an edit button for children, even if they don't list it in the props.

@kyle-west
Copy link
Member

Sweet. Yeah I'll take it.

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

No branches or pull requests

2 participants