Skip to content
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

[@mui/material]: (Storybook v8 )- Using react-docgen-typescript for showing controls results in "Show Code" being messed up #683

Open
melon2504 opened this issue Mar 15, 2024 · 1 comment

Comments

@melon2504
Copy link

Details

Recipe Page: @mui/material
Recipe Template: @mui/material
Browser: All

What is wrong

I have followed the following link of setting MUI with storybook.
https://storybook.js.org/recipes/@mui/material

The above definitely results in showing controls for all MUI props, but the "Show Code" in docs section is messed up. It worked fine in v7 of storybook.

Check the Docs section for Button Component in the storybook sandbox:
https://stackblitz.com/edit/github-qvoztx-kzoyvk?file=.storybook%2Fmain.ts

Screenshots

image

If I omit the typescript config in main.ts - code is shown correctly.

@chengwuchao
Copy link

I also encountered this problem. Is there any solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants