mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
18 lines
461 B
Plaintext
18 lines
461 B
Plaintext
```js
|
|
// .storybook/main.js
|
|
|
|
module.exports = {
|
|
stories: [
|
|
{
|
|
// 👇 The directory field sets the directory your stories
|
|
directory: '../packages/stories',
|
|
// 👇 The titlePrefix field will generate automatic titles for your stories
|
|
titlePrefix: 'MyComponents',
|
|
// 👇 Storybook will load all files that contain the stories extension
|
|
files: '*.stories.*',
|
|
},
|
|
],
|
|
addons: ['@storybook/addon-essentials'],
|
|
};
|
|
```
|