flozero / vuepress-plugin-docgen

auto docs generation for your components
https://f3ltron.github.io/vuepress-plugin-docgen/
MIT License
28 stars 3 forks source link

Need feedback. Should we consider wrapping a component into an iframe? #36

Closed flozero closed 4 years ago

flozero commented 4 years ago

I am back and ready to improve the plugin !

My first question is do we need to wrap the component into an iframe?

iframe is good because:

flozero commented 4 years ago

Or maybe you have ideas to full reset css into a div ?

elevatebart commented 4 years ago

In my experience, iframes have issues with

  1. VueJs and other Dev Tools
  2. Needing a server to load
  3. Communicating with the main frame

If the target is to scope css and scope components why not use scoped css or css-modules? If the objective is to have an iframe anyway, why not use another code-sandbox plugin instead?

flozero commented 4 years ago

I did some write with codesandbox.

I think the second i wanted to think about is to catch actions as storybook does