mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 05:01:50 +08:00
- Removed to ensure heading anchor links are stable over time - Consistently display required properties throughout API references
1.5 KiB
1.5 KiB
title |
---|
Main configuration |
The main configuration defines a Storybook project's behavior, including the location of stories, addons to use, feature flags, and other project-specific settings.
main.js
or main.ts
This configuration is defined in .storybook/main.js|ts
, which is located relative to the root of your project.
A typical Storybook configuration file looks like this:
<CodeSnippets paths={[ 'common/main-config-typical.js.mdx', 'common/main-config-typical.ts.mdx', ]} />
config
An object to configure Storybook containing the following properties:
framework
(Required)stories
(Required)addons
babel
babelDefault
core
docs
env
features
logLevel
managerHead
previewAnnotations
previewBody
previewHead
refs
staticDirs
typescript
viteFinal
webpackFinal
config
(⛔️ Deprecated)