Storybook: Set default panel tab to Knobs

Created on 7 May 2019  路  4Comments  路  Source: storybookjs/storybook

I am using Storybook for React and make heavy use of Knobs. In all instances, in the bottom panel, the default tab is the Actions panel. I would like to request the option to:
1) Set the option for a Default panel to be selected - i.e. Knobs rather than Actions

Thanks!

[UPDATE]
I am currently not making use of Actions or Story in the panels tab, so I was able to remove those add-ons from the bottom panel by removing them from addons.jsx.

addons question / support

Most helpful comment

Also reordering the imports in addons.js does the trick

All 4 comments

Also reordering the imports in addons.js does the trick

Any update on this, how to make the panel default

Any update on this, how to make the panel default

Just re-order your addons in .storybook/main.js

// ...
addons: [
    '@storybook/addon-knobs/register',
    '@storybook/addon-actions/register',
    '@storybook/addon-backgrounds/register'
  ],
// ...

FYI, we鈥檝e released addon-controls in 6.0-beta. Controls are portable, auto-generated knobs that are intended to replace addon-knobs long term.

Please upgrade and try them out today!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dnlsandiego picture dnlsandiego  路  3Comments

alexanbj picture alexanbj  路  3Comments

sakulstra picture sakulstra  路  3Comments

shilman picture shilman  路  3Comments

tirli picture tirli  路  3Comments