storybook/docs/snippets/common/storybook-framework-config-options.js.mdx

22 lines
477 B
Plaintext

```js
// .storybook/main.js
export default {
stories: ['../src/**/*.stories.@(js|ts)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: {
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-webpack5)
name: '@storybook/your-framework',
options: {
legacyRootApi: true,
strictMode: true,
legacyRootApi: true,
},
},
};
```