-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Wrapped components will not display prop types #177
Comments
@robcaldecottvelo Sadly, It has many restrictions covering practical usages. If you have time, Btw this one is coming, I feel like it can make this |
@lonyele similar to the .add('Example Story', () => (
<SomeWrappedComponent />
), readme: { forcedPropTables: [ActualComponentTableThatRenders] }) |
@cadebward Yeap, that is also on the feature request list! Once @tuchk4 gives me feedbacks on the comments from #170 , #171, I could make it happen(Though It seems he is busy) FYI below are the comments that can give you more context on this matter
|
@lonyele I think we can add docs your wrote at example to the docs or separated md file and link it from main README. I think we could start to implement #171 and as the result we will have full control on used React components and seems it will be possible to implement this feature. |
Many of our stories wrap an actual component in order to provide some local state, but this stops the component props table from appearing.
For example:
In the above example no props are displayed because of the wrapper
Story
component used for the local state. I have tried usingincludePropTables: [MyInput]
but it still won't work.However, if I change the story to render the
MyInput
component directly then the props will appear.Is there any way to coerce this add-on into picking up the actual component props?
The text was updated successfully, but these errors were encountered: