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

Use other components as children #109

Open
andyearnshaw opened this issue Mar 23, 2017 · 1 comment
Open

Use other components as children #109

andyearnshaw opened this issue Mar 23, 2017 · 1 comment

Comments

@andyearnshaw
Copy link

If I set propTypes.children to PropTypes.node.isRequired, I should be able to type a child component into the children* input. For example, let's say I have a TabStrip and TabPanel component that work together like this:

<TabStrip>
  <TabPanel link="Tab 1">
     ...tab content
  </TabPanel>
</TabStrip>

This is difficult to preview in BlueKit because <TabPanel> isn't accessible when entered into the children* input.

@ondrejbartas
Copy link
Contributor

Yep that is right and there is no way to achieve this. At least I don't see how. What we are doing is that we create Example.react.js with this large nested structures and this is what we see in bluekit. Into production build these examples will not propagate, unless you use them.

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

No branches or pull requests

2 participants