-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I selectively show tabs in panel? #9853
Comments
@dvnrsn you can use |
This doesn't quite address the job to be done seeing as I generally want to show only a few of the addons. It is good to know about because I would use it. However, when I apply the following code on an individual story, it seems to apply to every story, hiding the panel globally which is not desired. export default {
title: 'mycomp',
component: mycomp,
parameters: {
options: {
showPanel: false,
}
}
} |
Just found this blog https://medium.com/storybookjs/declarative-storybook-configuration-49912f77b78 which seems to articulate the future of storybook config. I realize I joined this party right when there were some major changes happening so I might need to adjust my config to this standard. To solve my problem here, perhaps manager.js is necessary as indicated in the link provided by shilman above. |
@dvnrsn I think it's all or nothing. You can hide the entire panel or show it. You can't selectively hide tabs currently. |
Ah, ok. What I learned is that one must include the addon in |
Is your feature request related to a problem? Please describe.
Is there a way to selectively show addons like actions, knobs
I want to hide globally and then pick certain stories that should show them
Docs has a good way of disabling per story but I'd like a way of enabling per story.
I feel like this would exist but I'm not understanding. I tried excluding from addons in main.js and then using the
.story = {decorator: [knobs]}
kind of syntaxThe text was updated successfully, but these errors were encountered: