We are using storybook to build ui components. Ui components are related to some data, in this case REST-Server. In actions I can add custom datas, but I would like to load data by axios. I have implemented small API-library for that.
Question: Is it possible to set global parameters for storybook from storybook UI? Like server url and auth token?
It's now possible to use an addon: https://github.com/ArrayKnight/storybook-addon-headless
Storybook Addon Headless connects Restful and/or GraphQL APIs to your stories with custom queries. Queries can have validated variables and can be defined globally, per story file or per story.
Examples: https://storybook-addon-headless.netlify.com/?path=/story/examples