storybook/docs/snippets/common/storybook-main-auto-title-custom.ts.mdx
2023-01-19 17:44:21 +00:00

22 lines
514 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: [{ directory: '../src', titlePrefix: 'Custom' }],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: {
name: '@storybook/react-webpack5',
options: {},
},
};
export default config;
```