storybook/docs/snippets/common/storybook-storyloading-custom-logic.js.mdx
2021-11-06 03:20:29 +00:00

13 lines
229 B
Plaintext

```js
// .storybook/main.js
function findStories() {
// your custom logic returns a list of files
}
module.exports = {
stories: async (list) => [...list, ...findStories()],
addons: ['@storybook/addon-essentials'],
};
```