DEV Community

Discussion on: Using Storybook with Vue single file components

Collapse
 
josephuspaye profile image
Josephus Paye II • Edited

Nice 👍 What does it look like when rendered in Storybook by the way?

Collapse
 
lopis profile image
Joao L.

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.

Thread Thread
 
optiman profile image
optiman

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.

Thread Thread
 
lopis profile image
Joao L.

It's a bit hard to help without seeing the code or why it didn't work for you.

Thread Thread
 
optiman profile image
optiman

Thank you for your reply.
It works now.
How can I thank you?
I used your code and it works well. :)