mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
18 lines
466 B
Plaintext
18 lines
466 B
Plaintext
```ts
|
|
// .storybook/main.ts
|
|
|
|
import type { StorybookConfig } from '@storybook/react-vite'; // your framework
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
|
|
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
|
|
framework: '@storybook/react-vite',
|
|
async viteFinal(config, options) {
|
|
// Add your configuration here
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default config;
|
|
```
|