Does Storybook autodocs support JSDoc tags? #30013
Unanswered
TomBigelow
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Im trying to get my JSDoc parameters to show up in the docs tab of my React.js component in storybook, but the JSDoc parameters are just being displayed as blank text. What is the expected behaviour? Is this possible or am I doing something wrong?
It was my understanding that react-docgen parsed the component for JSDoc tags and displayed them correctly in the Storybook. Currently I see the parameters come from the PropTypes. And If I were to supply a default using "=" in the component signature, then that would populate there as well.
NewComponent.jsx:
newcomponent.stories.js:
Additional information
main.js:
Preview.js:
Package.json
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions