|
I'm using Storybook in a monorepo project using the Turborepo + Storybook template and the stories don't show the TypeScript component props and types automatically. Here's a live example (screenshot below) I expected to see the prop types and description under the "description" column but I couldn't achieve that in a monorepo. Since it's a design system project, I don't want to manually set the Any help is appreciated! |
Replies: 4 comments 6 replies
|
Hi @moisespio, I'm using the same setup and have yet to experience that problem. Could you share the component and story file for your button? I'll like to make a comparison with one of my components. |
|
I'm having this same problem when working with the same guide. Would love some help figuring out the problem. In my case, I'm working on setting up a design system that uses MUI in turbo with storybook, but the argTypes/controls are not being auto-generated by the docs. Also tried react-docgen vs react-docgen-typescript, along with various other changes. Nothing has worked so far I adjusted the Button component to extend the Mui Button, and I upgraded to storybook 7.5.3 instead of 7.4.0 (I don't think either fixed the auto-docs issue). Here's the demo repo I've been using to test this: https://github.com/jbrunner92/storybook-with-mui-in-turbo |
|
I seem to be having a very similar issue. I have a mono-repo. The typescript definitions are defined in a single file separate from any component. This typescript file is autogenerated and contains types as well as comments that match the UI. If I define the component props types with comments in the component file, the docs auto populate for me. But since the types are in a separate file, the descriptions are left empty. |
|
I was finally able to make this work a few weeks back. See solution here: #24943 (comment) |

I was finally able to make this work a few weeks back. See solution here: #24943 (comment)