pocka / storybook-addon-vue-info

Info addon for Vue components
https://storybook-addon-vue-info.netlify.com/?path=/story/examples-basic-usage--simple-example
MIT License
164 stars 28 forks source link

No Info(Vue) Tabe when docs not in panel #101

Closed psi-4ward closed 5 years ago

psi-4ward commented 5 years ago

When displaying the documentation within preview pane we can remove the Info(Vue) Tab from the addons panel cause it's empty.

https://github.com/pocka/storybook-addon-vue-info/blob/953da5518981eda113b99cea59f32e35349cf7f2/src/register.tsx#L80

what do you think?

pocka commented 5 years ago

If you never use Info(Vue) tab in the whole stories, remove this line from .storybook/addon.js

// .storybook/addons.js
import 'storybook-addon-vue-info/lib/register'

AFAIK, there is no way to remove (or hide) addon tabs in runtime.

psi-4ward commented 5 years ago

Thx, this solves the issue!