prevent controls panel open at start #33435
-
|
@dosu |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You can prevent the controls panel from opening by default by setting the following in your export default {
parameters: {
controls: { expanded: false },
},
};This will keep the controls panel collapsed when Storybook starts. More details can be found in the official documentation snippet. If you need to hide the controls panel entirely, you may want to look into disabling the controls addon or customizing your Storybook configuration further. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
You can prevent the controls panel from opening by default by setting the following in your
.storybook/preview.js(or.storybook/preview.ts):This will keep the controls panel collapsed when Storybook starts. More details can be found in the official documentation snippet.
If you need to hide the controls panel entirely, you may want to look into disabling the controls addon or customizing your Storybook configuration further.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other