view_component-storybook icon indicating copy to clipboard operation
view_component-storybook copied to clipboard

Preview source feature

Open lemingos opened this issue 4 years ago • 3 comments
trafficstars

Storybook comes with handy code previews, is it possible to automatically generate those?

It's possible to render source preview with view_component https://github.com/github/view_component/blob/main/app/views/view_components/preview.html.erb#L7-L9

Can you tell me if it's as well possible to add those source previews and if so how to do it?

lemingos avatar Jul 28 '21 11:07 lemingos

Storybook storysource or something like it is an issue we're discussing on the Storybook team and how to integrate it with CSF3 etc.

jonspalmer avatar Jul 29 '21 00:07 jonspalmer

Would love to see this as well :)!

edwinthinks avatar Aug 17 '21 11:08 edwinthinks

Do you have any update from the Storybook team ? Currently it's the one last feature that's missing my team to use this gem ! Tell me if I can help :)

LeonardFlatlooker avatar Oct 09 '21 15:10 LeonardFlatlooker