Storybook is a great tool for designing, writing and testing components in isolation. With it, we can create and test components without needing to...
For further actions, you may consider blocking this person and/or reporting abuse
Hello, it's me again! I found yet another way to improve your approach, by linking your source loader into addon-docs. I just modified this part on the story.js helper:
This addition allows us to render the source code directly in the addon-docs source panel.
Nice 👍 What does it look like when rendered in Storybook by the way?
It shows the content of the whole .vue file in the code panel of addon-docs. I wonder if it would be possible to do the same to pass the source code to the source addon, so the custom source panel wouldn't be needed.
Hi, Joao L.
I want to show the content of .vue file in the source or story panel.
I tried in your way. But I cant solve this problem.
Please help me.
It's a bit hard to help without seeing the code or why it didn't work for you.
Thank you for your reply.
It works now.
How can I thank you?
I used your code and it works well. :)
Hey, I realized that you don't need to manually write the path in the
<include-source />
at all. Webpack can resolve the file path withthis.resourcePath
That's pretty good! Would you be able to make a pull request to the tutorial example? github.com/JosephusPaye/vue-storyb...
This is an amazing approach. I got excited and started implementing it but getting some obscure error from the vue loader or something. Do you have a working example by any chance?
edit: Oh silly me, I just noticed you do have it.
Hi, @josephuspaye
I tried as you mentioned.
But I couldn't solve the problem.
I want to show the contents of vue files in story or source board.
Can you help me please?
And are there any node modules to show the content of .vue files in story board?
Thanks @Josephus, very useful article really helped me out while I was troubleshooting my code :D.
Thanks for the great article.
i went through the article for installing it, but I've experienced some errors, can you please check this out?
github.com/storybookjs/storybook/i...
Anyone able to get this SFC style working with the storybook controls addon?