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.
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!
Most helpful comment
Also reordering the imports in
addons.jsdoes the trick