storybook/docs/snippets/common/storybook-framework-config-options.ts.mdx
2022-12-06 21:13:52 +00:00

27 lines
640 B
Plaintext

```ts
// .storybook/main.ts
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-webpack5)
import type { StorybookConfig } from '@storybook/your-framework';
const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|ts)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: {
// The name of the framework you want to use goes here
name: '@storybook/your-framework',
options: {
legacyRootApi: true,
strictMode: true,
legacyRootApi: true,
},
},
};
export default config;
```