-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Info addon, propTypes show up as other #2198
Comments
@danielduan So I forked the repo and looked at the info addon and noticed in the example storybook for the info addon the propTypes were displaying as expected. So the bug had to be in our code. I then looked more closely at our code and found the issue. We were exporting our component as follows.
I removed the first export and we now have prop types displaying as expected with the info addon.
I can close this issue if you'd like. |
thanks for reporting back! I think the propType detection support for named exports is definitely a bit shaky. |
It still happens, was it fixed or is it the same issue since? |
|
We are using the info addon for storybook and the propType in the Prop Types table always show up as "other". The required attribute seems to work correctly.
We are using the following versions.
This issue is similar to a previously reported issue.
storybook-eol/react-storybook-addon-info#145
The text was updated successfully, but these errors were encountered: