modernweb-dev / storybook-prebuilt

Storybook prebuilt to work with native es modules
MIT License
36 stars 9 forks source link

How to setConfig? #132

Closed chrispaterson closed 2 years ago

chrispaterson commented 2 years ago

It seems like addons are not part of the opinionated set? I have a component which takes a text input and my panels fly in and out when I type. I'd like to be able to disable storybook shortcuts, like this page describes: https://storybook.js.org/docs/react/configure/features-and-behavior but can't figure out how to do that with this package?

Westbrook commented 2 years ago

I can't say that I've tried everyone of the options in the config, but I do it by having a .storybook/manager.js file and including code as seen in the URL you've included. Usage is probably a good add to the demos in https://github.com/modernweb-dev/web/tree/master/packages/dev-server-storybook as well as the demos in this repo (though they're more for release testing than for learning to consume the library at this point) so that it can be seen in action.

Here's an example in the wild: https://github.com/adobe/spectrum-web-components/blob/main/.storybook/manager.js

chrispaterson commented 2 years ago

Oh! So addons is there! Great, thanks!