hipstersmoothie / storybook-addon-react-docgen

A storybook addon to display react docgen info.
MIT License
87 stars 14 forks source link

MDX support? #119

Closed aharris closed 3 years ago

aharris commented 3 years ago

Is it possible to use this with MDX?

Based on the docs I am not sure how to go about this.

"Usage within the story matter: This addon determines what components to display props for by finding all components used in the JSX returned by the story. So if you want prop-types to be displayed for a component, you must return that component in the story function."

Thanks for any feedback.

aharris commented 3 years ago

I figured it out :).

I was not following the guide to "use default export + named export"

Thanks for this!