mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 18:31:46 +08:00
11 lines
432 B
Markdown
11 lines
432 B
Markdown
```ts filename=".storybook/main.ts" renderer="react" language="ts"
|
|
// Replace your-framework with the framework you are using (e.g., react-vite, nextjs, experimental-nextjs-vite)
|
|
import { defineMain } from '@storybook/your-framework/node';
|
|
|
|
export default defineMain({
|
|
framework: '@storybook/your-framework',
|
|
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
addons: ['@storybook/addon-a11y'],
|
|
});
|
|
```
|