Skip to content

Commit a250488

Browse files
CopilotJReinhold
andcommitted
docs: reflect that componentsManifest defaults to true and can be omitted
Co-authored-by: JReinhold <5678122+JReinhold@users.noreply.github.com>
1 parent ff217d8 commit a250488

File tree

5 files changed

+5
-25
lines changed

5 files changed

+5
-25
lines changed

.changeset/components-manifest-flag-rename.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,3 @@
66
Rename feature flag `experimentalComponentsManifest``componentsManifest`
77

88
The Storybook feature flag has been renamed from `experimentalComponentsManifest` to `componentsManifest` and now defaults to `true` in Storybook core.
9-
10-
The addon is backwards compatible with older Storybook versions that still use the old flag name — it checks `features.componentsManifest` first and falls back to `features.experimentalComponentsManifest`.
11-
12-
**Migration:** Update your `.storybook/main.js` if you had the flag explicitly set:
13-
14-
```js
15-
// Before
16-
features: { experimentalComponentsManifest: true }
17-
18-
// After
19-
features: { componentsManifest: true }
20-
// Or omit entirely — it defaults to true in recent Storybook versions
21-
```

.github/instructions/addon-mcp.instructions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ The addon supports two toolsets that can be enabled/disabled:
3131
2. **`docs`** (default: true)
3232
- `list-all-documentation`: List all available components from manifest
3333
- `get-documentation`: Get detailed component documentation
34-
- Requires feature flag `features.componentsManifest`
3534

3635
**Configuration Methods:**
3736

apps/internal-storybook/.storybook/main.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ const config = defineMain({
2828
core: {
2929
disableTelemetry: true,
3030
},
31-
features: {
32-
componentsManifest: true,
33-
},
3431
// No refs - single source mode
3532
});
3633

eval/templates/grading/.storybook/main.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,5 @@ const config: StorybookConfig = {
99
'@storybook/addon-mcp',
1010
],
1111
framework: '@storybook/react-vite',
12-
features: {
13-
componentsManifest: true,
14-
},
1512
};
1613
export default config;

packages/addon-mcp/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,12 @@ export default {
4848
options: {
4949
toolsets: {
5050
dev: true, // Tools for story URL retrieval and UI building instructions (default: true)
51-
docs: true, // Tools for component manifest and documentation (default: true, requires feature flag below 👇)
51+
docs: true, // Tools for component manifest and documentation (default: true)
5252
},
5353
},
5454
},
5555
],
56-
features: {
57-
componentsManifest: true, // Enable manifest generation for the docs toolset, only supported in React-based setups.
58-
},
56+
// componentsManifest is enabled by default in recent Storybook versions, no need to set it
5957
};
6058
```
6159

@@ -180,10 +178,12 @@ These additional tools are available when the component manifest feature is enab
180178

181179
- Storybook version 10.1.0 or higher (currently only available as prereleases, `storybook@next`)
182180
- React-based framework (`react-vite`, `nextjs-vite`, `nextjs`, `react-webpack5`)
183-
- Feature flag `features.componentsManifest` set to `true` in `.storybook/main.js`
181+
- Feature flag `features.componentsManifest` enabled (defaults to `true` in recent Storybook versions)
184182

185183
**To enable:**
186184

185+
The `componentsManifest` feature is enabled by default in recent Storybook versions — no configuration needed. If you need to explicitly set it (e.g. for older Storybook versions), add it to your config:
186+
187187
```javascript
188188
// .storybook/main.js
189189
export default {

0 commit comments

Comments
 (0)