Skip to content
Discussion options

You must be logged in to vote

You can prevent the controls panel from opening by default by setting the following in your .storybook/preview.js (or .storybook/preview.ts):

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

Chat with Dosu  Join Discord Share on X

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by meeshan-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant