storybook/docs/snippets/common/storybook-auto-docs-main-mdx-config.ts.mdx
2022-12-16 14:55:59 +08:00

27 lines
668 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: [
//👇 Your documentation written in MDX along with your stories goes here
'../src/**/*.mdx',
'../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: {},
},
};
export default config;
```