Replies: 2 comments 2 replies
-
Will add as #11526 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Still having issues with this as of #11526 being closed: Where source code used to be found with no problems, it's now just saying "no code available" |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, hoping someone might be able to help me out with this. Writing some documentation for a library we built and when I was writing docs using v5, the stories used to have a code preview that showed the entire function being used to achieve the story like below:
We decided to use addon/controls as well, and for compatibility, we updated our docs addon to v6.0.0 and now the code previews only show the returned react component like so:
This is actually useless for what we wanted to achieve with writing our documentation in storybook and can't actually just be copied and pasted by our users to get started with. I was wondering if there was a way to make the v6 code preview function like v5?
Beta Was this translation helpful? Give feedback.
All reactions