diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 871971bac231..9bf65226b831 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -21,7 +21,7 @@ body:
description: >-
We prioritize bug reports that have a reproduction. You can create a reproduction using [storybook.new](https://storybook.new), or by running `npx sb@next sandbox` and
following the instructions. Read our
- [documentation](https://storybook.js.org/docs/react/contribute/how-to-reproduce)
+ [documentation](https://storybook.js.org/docs/contribute/how-to-reproduce)
to learn more about creating reproductions.
placeholder: >-
Paste a link to your reproduction here. We prioritize issues with reproductions over those without.
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index ba472744a8f1..eb662fb9c8ab 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -4,11 +4,10 @@ Closes #
-
## What I did
@@ -20,6 +19,7 @@ Thank you for contributing to Storybook! Please submit all PRs to the `next` bra
#### The changes in this PR are covered in the following automated tests:
+
- [ ] stories
- [ ] unit tests
- [ ] integration tests
@@ -52,16 +52,16 @@ _This section is mandatory for all contributions. If you believe no manual test
Available labels
- - `bug`: Internal changes that fixes incorrect behavior.
- - `maintenance`: User-facing maintenance tasks.
- - `dependencies`: Upgrading (sometimes downgrading) dependencies.
- - `build`: Internal-facing build tooling & test updates. Will not show up in release changelog.
- - `cleanup`: Minor cleanup style change. Will not show up in release changelog.
- - `documentation`: Documentation **only** changes. Will not show up in release changelog.
- - `feature request`: Introducing a new feature.
- - `BREAKING CHANGE`: Changes that break compatibility in some way with current major version.
- - `other`: Changes that don't fit in the above categories.
-
+ - `bug`: Internal changes that fixes incorrect behavior.
+ - `maintenance`: User-facing maintenance tasks.
+ - `dependencies`: Upgrading (sometimes downgrading) dependencies.
+ - `build`: Internal-facing build tooling & test updates. Will not show up in release changelog.
+ - `cleanup`: Minor cleanup style change. Will not show up in release changelog.
+ - `documentation`: Documentation **only** changes. Will not show up in release changelog.
+ - `feature request`: Introducing a new feature.
+ - `BREAKING CHANGE`: Changes that break compatibility in some way with current major version.
+ - `other`: Changes that don't fit in the above categories.
+
### π¦ Canary release
diff --git a/CHANGELOG.v6.md b/CHANGELOG.v6.md
index 391f14fed6ed..bad28ce92d21 100644
--- a/CHANGELOG.v6.md
+++ b/CHANGELOG.v6.md
@@ -4942,7 +4942,7 @@ Storybook 6.0 is here!
- 𧬠[Args: Next-generation, dynamic story format](https://medium.com/storybookjs/introducing-storybook-args-2dadcdb777cc)
- π [Controls: Live edit component examples](https://medium.com/storybookjs/storybook-controls-ce82af93e430)
- π [Composition: Combine multiple Storybooks](https://medium.com/storybookjs/storybook-composition-af0da9084fba)
-- π [Documentation: Complete project overhaul](https://storybook.js.org/docs/react/get-started/introduction)
+- π [Documentation: Complete project overhaul](https://storybook.js.org/docs/get-started)
6.0 contains hundreds more fixes, features, and tweaks. Browse the changelogs matching `6.0.0-alpha.*`, `6.0.0-beta.*`, and `6.0.0-rc.*` for the full list of changes. See [MIGRATION.md](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md) to upgrade from `5.3` or earlier.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 78993afd8386..314f5dcc1dd2 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -55,4 +55,4 @@ yarn task --task dev --template --start-from=publish
# Contributing to Storybook
-For further advice on how to contribute, please refer to our [NEW contributing guide on the Storybook website](https://storybook.js.org/docs/react/contribute/how-to-contribute).
+For further advice on how to contribute, please refer to our [NEW contributing guide on the Storybook website](https://storybook.js.org/docs/contribute/how-to-contribute).
diff --git a/MAINTAINERS.md b/MAINTAINERS.md
index 191dc42d5b90..e7640a31d10e 100644
--- a/MAINTAINERS.md
+++ b/MAINTAINERS.md
@@ -25,7 +25,7 @@ This document outlines some of the processes that the maintainers should adhere
| compatibility with other tools | Issue, bug, or pull request between Storybook and other tools (e.g., [Nuxt](https://nuxtjs.org/)) |
| components | Issue, bug, or pull request related to Storybook's internal components |
| composition | Issue, bug, or pull request related to Storybook [Composition](/docs/sharing/storybook-composition.md) |
-| configuration | Issue, bug, or pull request related to Storybook [configuration](/docs/configure/overview.md) |
+| configuration | Issue, bug, or pull request related to Storybook [configuration](/docs/configure/index.md) |
| core | Issue, bug, or pull request related to Storybook's Core |
| cra | Issue, bug, or pull request that affects Storybook's compatibility with Create React APP ([CRA](https://create-react-app.dev/docs/getting-started/)) |
| CSF | Issue, bug, or pull request related to Storybook's [Component Story Format (CSF)](/docs/api/csf.md) |
diff --git a/MIGRATION.md b/MIGRATION.md
index ca14c266b621..3d432ffb35ed 100644
--- a/MIGRATION.md
+++ b/MIGRATION.md
@@ -1,13 +1,13 @@
Migration
- [From version 7.5.0 to 7.6.0](#from-version-750-to-760)
- - [Primary doc block accepts of prop](#primary-doc-block-accepts-of-prop)
- - [Addons no longer need a peer dependency on React](#addons-no-longer-need-a-peer-dependency-on-react)
+ - [Primary doc block accepts of prop](#primary-doc-block-accepts-of-prop)
+ - [Addons no longer need a peer dependency on React](#addons-no-longer-need-a-peer-dependency-on-react)
- [From version 7.4.0 to 7.5.0](#from-version-740-to-750)
- - [`storyStoreV6` and `storiesOf` is deprecated](#storystorev6-and-storiesof-is-deprecated)
- - [`storyIndexers` is replaced with `experimental_indexers`](#storyindexers-is-replaced-with-experimental_indexers)
+ - [`storyStoreV6` and `storiesOf` is deprecated](#storystorev6-and-storiesof-is-deprecated)
+ - [`storyIndexers` is replaced with `experimental_indexers`](#storyindexers-is-replaced-with-experimental_indexers)
- [From version 7.0.0 to 7.2.0](#from-version-700-to-720)
- - [Addon API is more type-strict](#addon-api-is-more-type-strict)
+ - [Addon API is more type-strict](#addon-api-is-more-type-strict)
- [From version 6.5.x to 7.0.0](#from-version-65x-to-700)
- [7.0 breaking changes](#70-breaking-changes)
- [Dropped support for Node 15 and below](#dropped-support-for-node-15-and-below)
@@ -33,7 +33,7 @@
- [Deploying build artifacts](#deploying-build-artifacts)
- [Dropped support for file URLs](#dropped-support-for-file-urls)
- [Serving with nginx](#serving-with-nginx)
- - [Ignore story files from node\_modules](#ignore-story-files-from-node_modules)
+ - [Ignore story files from node_modules](#ignore-story-files-from-node_modules)
- [7.0 Core changes](#70-core-changes)
- [7.0 feature flags removed](#70-feature-flags-removed)
- [Story context is prepared before for supporting fine grained updates](#story-context-is-prepared-before-for-supporting-fine-grained-updates)
@@ -45,7 +45,7 @@
- [Addon-interactions: Interactions debugger is now default](#addon-interactions-interactions-debugger-is-now-default)
- [7.0 Vite changes](#70-vite-changes)
- [Vite builder uses Vite config automatically](#vite-builder-uses-vite-config-automatically)
- - [Vite cache moved to node\_modules/.cache/.vite-storybook](#vite-cache-moved-to-node_modulescachevite-storybook)
+ - [Vite cache moved to node_modules/.cache/.vite-storybook](#vite-cache-moved-to-node_modulescachevite-storybook)
- [7.0 Webpack changes](#70-webpack-changes)
- [Webpack4 support discontinued](#webpack4-support-discontinued)
- [Babel mode v7 exclusively](#babel-mode-v7-exclusively)
@@ -95,7 +95,7 @@
- [Dropped addon-docs manual babel configuration](#dropped-addon-docs-manual-babel-configuration)
- [Dropped addon-docs manual configuration](#dropped-addon-docs-manual-configuration)
- [Autoplay in docs](#autoplay-in-docs)
- - [Removed STORYBOOK\_REACT\_CLASSES global](#removed-storybook_react_classes-global)
+ - [Removed STORYBOOK_REACT_CLASSES global](#removed-storybook_react_classes-global)
- [7.0 Deprecations and default changes](#70-deprecations-and-default-changes)
- [storyStoreV7 enabled by default](#storystorev7-enabled-by-default)
- [`Story` type deprecated](#story-type-deprecated)
@@ -357,13 +357,13 @@ npx storybook@latest migrate csf-2-to-3 --glob="**/*.stories.tsx" --parser=tsx
They won't do a perfect migration so we recommend that you manually go through each file afterwards.
-Alternatively you can build your own `storiesOf` implementation by leveraging the new (experimental) indexer API ([documentation](https://storybook.js.org/docs/react/api/main-config-indexers), [migration](#storyindexers-is-replaced-with-experimental_indexers)). A proof of concept of such an implementation can be seen in [this StackBlitz demo](https://stackblitz.com/edit/github-h2rgfk?file=README.md). See the demo's `README.md` for a deeper explanation of the implementation.
+Alternatively you can build your own `storiesOf` implementation by leveraging the new (experimental) indexer API ([documentation](https://storybook.js.org/docs/api/main-config-indexers), [migration](#storyindexers-is-replaced-with-experimental_indexers)). A proof of concept of such an implementation can be seen in [this StackBlitz demo](https://stackblitz.com/edit/github-h2rgfk?file=README.md). See the demo's `README.md` for a deeper explanation of the implementation.
#### `storyIndexers` is replaced with `experimental_indexers`
Defining custom indexers for stories has become a more official - yet still experimental - API which is now configured at `experimental_indexers` instead of `storyIndexers` in `main.ts`. `storyIndexers` has been deprecated and will be fully removed in version 8.0.0.
-The new experimental indexers are documented [here](https://storybook.js.org/docs/react/api/main-config-indexers). The most notable change from `storyIndexers` is that the indexer must now return a list of [`IndexInput`](https://github.com/storybookjs/storybook/blob/next/code/lib/types/src/modules/indexer.ts#L104-L148) instead of `CsfFile`. It's possible to construct an `IndexInput` from a `CsfFile` using the `CsfFile.indexInputs` getter.
+The new experimental indexers are documented [here](https://storybook.js.org/docs/api/main-config-indexers). The most notable change from `storyIndexers` is that the indexer must now return a list of [`IndexInput`](https://github.com/storybookjs/storybook/blob/next/code/lib/types/src/modules/indexer.ts#L104-L148) instead of `CsfFile`. It's possible to construct an `IndexInput` from a `CsfFile` using the `CsfFile.indexInputs` getter.
That means you can convert an existing story indexer like this:
@@ -926,11 +926,11 @@ import ReadMe from './README.md?raw';
#### Stories field in .storybook/main.js is mandatory
In 6.x, the `stories` key field in `.storybook/main.js` was optional. In 7.0, it is mandatory.
-Please follow up the [Configure your Storybook project](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project) section to configure your Storybook project.
+Please follow up the [Configure your Storybook project](https://storybook.js.org/docs/configure/#configure-your-storybook-project) section to configure your Storybook project.
#### Stricter global types
-In 6.x, you could declare and use [`globals`](https://storybook.js.org/docs/react/essentials/toolbars-and-globals) without declaring their corresponding `globalTypes`. We've made this more strict in 7.0, so that the `globalTypes` declaration is required, and undeclared globals will be ignored.
+In 6.x, you could declare and use [`globals`](https://storybook.js.org/docs/essentials/toolbars-and-globals) without declaring their corresponding `globalTypes`. We've made this more strict in 7.0, so that the `globalTypes` declaration is required, and undeclared globals will be ignored.
#### Deploying build artifacts
@@ -940,7 +940,7 @@ Those end up as `.mjs` files in your static Storybook artifact and need to be se
For a simple HTTP server to view a Storybook build, you can run `npx http-server storybook-static`.
-Note that [using the serve package](https://storybook.js.org/docs/react/faq#i-see-a-no-preview-error-with-a-storybook-production-build) will not work.
+Note that [using the serve package](https://storybook.js.org/docs/faq#i-see-a-no-preview-error-with-a-storybook-production-build) will not work.
##### Dropped support for file URLs
@@ -1083,14 +1083,14 @@ export default config;
#### Vite builder uses Vite config automatically
When using a [Vite-based framework](#framework-field-mandatory), Storybook will automatically use your `vite.config.(ctm)js` config file starting in 7.0.
-Some settings will be overridden by Storybook so that it can function properly, and the merged settings can be modified using `viteFinal` in `.storybook/main.js` (see the [Storybook Vite configuration docs](https://storybook.js.org/docs/react/builders/vite#configuration)).
+Some settings will be overridden by Storybook so that it can function properly, and the merged settings can be modified using `viteFinal` in `.storybook/main.js` (see the [Storybook Vite configuration docs](https://storybook.js.org/docs/builders/vite#configuration)).
If you were using `viteFinal` in 6.5 to simply merge in your project's standard Vite config, you can now remove it.
For Svelte projects this means that the `svelteOptions` property in the `main.js` config should be omitted, as it will be loaded automatically via the project's `vite.config.js`.
#### Vite cache moved to node_modules/.cache/.vite-storybook
-Previously, Storybook's Vite builder placed cache files in node_modules/.vite-storybook. However, it's more common for tools to place cached files into `node_modules/.cache`, and putting them there makes it quick and easy to clear the cache for multiple tools at once. We don't expect this change will cause any problems, but it's something that users of Storybook Vite projects should know about. It can be configured by setting `cacheDir` in `viteFinal` within `.storybook/main.js` [Storybook Vite configuration docs](https://storybook.js.org/docs/react/builders/vite#configuration)).
+Previously, Storybook's Vite builder placed cache files in node_modules/.vite-storybook. However, it's more common for tools to place cached files into `node_modules/.cache`, and putting them there makes it quick and easy to clear the cache for multiple tools at once. We don't expect this change will cause any problems, but it's something that users of Storybook Vite projects should know about. It can be configured by setting `cacheDir` in `viteFinal` within `.storybook/main.js` [Storybook Vite configuration docs](https://storybook.js.org/docs/builders/vite#configuration)).
### 7.0 Webpack changes
@@ -2373,7 +2373,7 @@ storySort: {
}
```
-This would sort `*/Introduction` first, but not `Introduction` or `Very/Nested/Introduction`. If you want to target `Introduction` stories/docs anywhere in the hierarchy, you can do this with a [custom sort function](https://storybook.js.org/docs/react/writing-stories/naming-components-and-hierarchy#sorting-stories).
+This would sort `*/Introduction` first, but not `Introduction` or `Very/Nested/Introduction`. If you want to target `Introduction` stories/docs anywhere in the hierarchy, you can do this with a [custom sort function](https://storybook.js.org/docs/writing-stories/naming-components-and-hierarchy#sorting-stories).
#### v7 Store API changes for addon authors
@@ -2454,7 +2454,7 @@ In 6.4 the behavior of loaders when arg changes occurred was tweaked so loaders
#### SB Angular builder
-Since SB6.3, Storybook for Angular supports a builder configuration in your project's `angular.json`. This provides an Angular-style configuration for running and building your Storybook. An example builder configuration is now part of the [get started documentation page](https://storybook.js.org/docs/angular/get-started/install).
+Since SB6.3, Storybook for Angular supports a builder configuration in your project's `angular.json`. This provides an Angular-style configuration for running and building your Storybook. An example builder configuration is now part of the [get started documentation page](https://storybook.js.org/docs/get-started/install).
If you want to know all the available options, please checks the builders' validation schemas :
@@ -2744,7 +2744,7 @@ The new convention is consistent with how other frameworks and addons work in St
#### New Angular renderer
-We've rewritten the Angular renderer in Storybook 6.2. It's meant to be entirely backwards compatible, but if you need to use the legacy renderer it's still available via a [parameter](https://storybook.js.org/docs/angular/writing-stories/parameters). To opt out of the new renderer, add the following to `.storybook/preview.ts`:
+We've rewritten the Angular renderer in Storybook 6.2. It's meant to be entirely backwards compatible, but if you need to use the legacy renderer it's still available via a [parameter](https://storybook.js.org/docs/writing-stories/parameters). To opt out of the new renderer, add the following to `.storybook/preview.ts`:
```ts
export const parameters = {
@@ -2908,7 +2908,7 @@ DESIGN SYSTEM [root]
- Checkbox [story]
```
-See [Naming components and hierarchy](https://storybook.js.org/docs/react/writing-stories/naming-components-and-hierarchy#single-story-hoisting) for details.
+See [Naming components and hierarchy](https://storybook.js.org/docs/writing-stories/naming-components-and-hierarchy#single-story-hoisting) for details.
### React peer dependencies
@@ -2990,7 +2990,7 @@ Basic.parameters: {
Like [Deprecated disabled parameter](#deprecated-disabled-parameter). The `disabled` parameter has been deprecated, please use `disable` instead.
-For more information, see the [the related documentation](https://storybook.js.org/docs/react/workflows/package-composition#configuring).
+For more information, see the [the related documentation](https://storybook.js.org/docs/workflows/package-composition#configuring).
## From version 5.3.x to 6.0.x
@@ -3036,7 +3036,7 @@ Storybook has built-in Typescript support in 6.0. That means you should remove y
To migrate from an old setup, we recommend deleting any typescript-specific webpack/babel configurations in your project. You should also remove `@storybook/preset-typescript`, which is superceded by the built-in configuration.
-If you want to override the defaults, see the [typescript configuration docs](https://storybook.js.org/docs/react/configure/typescript).
+If you want to override the defaults, see the [typescript configuration docs](https://storybook.js.org/docs/configure/typescript).
### Correct globs in main.js
@@ -3082,7 +3082,7 @@ npm install core-js@^3.0.1 --save-dev
### Args passed as first argument to story
-Starting in 6.0, the first argument to a story function is an [Args object](https://storybook.js.org/docs/react/api/csf#args-story-inputs). In 5.3 and earlier, the first argument was a [StoryContext](https://github.com/storybookjs/storybook/blob/release/5.3/lib/addons/src/types.ts#L24-L31), and that context is now passed as the second argument by default.
+Starting in 6.0, the first argument to a story function is an [Args object](https://storybook.js.org/docs/api/csf#args-story-inputs). In 5.3 and earlier, the first argument was a [StoryContext](https://github.com/storybookjs/storybook/blob/release/5.3/lib/addons/src/types.ts#L24-L31), and that context is now passed as the second argument by default.
This breaking change only affects you if your stories actually use the context, which is not common. If you have any stories that use the context, you can either (1) update your stories, or (2) set a flag to opt-out of new behavior.
@@ -3992,7 +3992,7 @@ module.exports = ({ config }) => ({
});
```
-Please refer to the [current custom webpack documentation](https://storybook.js.org/docs/react/configure/webpack) for more information on custom webpack config and to [Issue #6081](https://github.com/storybookjs/storybook/issues/6081) for more information about the change.
+Please refer to the [current custom webpack documentation](https://storybook.js.org/docs/configure/webpack) for more information on custom webpack config and to [Issue #6081](https://github.com/storybookjs/storybook/issues/6081) for more information about the change.
## From version 4.1.x to 5.0.x
@@ -4033,11 +4033,11 @@ module.exports = ({ config, mode }) => { config.module.rules.push(...); return c
In contrast, the 4.x configuration function accepted either two or three arguments (`(baseConfig, mode)`, or `(baseConfig, mode, defaultConfig)`). The `config` object in the 5.x signature is equivalent to 4.x's `defaultConfig`.
-Please see the [current custom webpack documentation](https://storybook.js.org/docs/react/configure/webpack) for more information on custom webpack config.
+Please see the [current custom webpack documentation](https://storybook.js.org/docs/configure/webpack) for more information on custom webpack config.
### Theming overhaul
-Theming has been rewritten in v5. If you used theming in v4, please consult the [theming docs](https://storybook.js.org/docs/react/configure/theming) to learn about the new API.
+Theming has been rewritten in v5. If you used theming in v4, please consult the [theming docs](https://storybook.js.org/docs/configure/theming) to learn about the new API.
### Story hierarchy defaults
@@ -4069,7 +4069,7 @@ addParameters({
### Options addon deprecated
-In 4.x we added story parameters. In 5.x we've deprecated the options addon in favor of [global parameters](https://storybook.js.org/docs/react/configure/features-and-behavior), and we've also renamed some of the options in the process (though we're maintaining backwards compatibility until 6.0).
+In 4.x we added story parameters. In 5.x we've deprecated the options addon in favor of [global parameters](https://storybook.js.org/docs/configure/features-and-behavior), and we've also renamed some of the options in the process (though we're maintaining backwards compatibility until 6.0).
Here's an old configuration:
@@ -4430,7 +4430,7 @@ The `@storybook/react-native` had built-in addons (`addon-actions` and `addon-li
### Webpack 4
-Storybook now uses webpack 4. If you have a [custom webpack config](https://storybook.js.org/docs/react/configure/webpack), make sure that all the loaders and plugins you use support webpack 4.
+Storybook now uses webpack 4. If you have a [custom webpack config](https://storybook.js.org/docs/configure/webpack), make sure that all the loaders and plugins you use support webpack 4.
### Babel 7
@@ -4542,7 +4542,7 @@ This was done to support different major versions of babel.
### Base webpack config now contains vital plugins #1775
-This affects you if you use custom webpack config in [Full Control Mode](https://storybook.js.org/docs/react/configure/webpack#full-control-mode) while not preserving the plugins from `storybookBaseConfig`. Before `3.3`, preserving them was a recommendation, but now it [became](https://github.com/storybookjs/storybook/pull/2578) a requirement.
+This affects you if you use custom webpack config in [Full Control Mode](https://storybook.js.org/docs/configure/webpack#full-control-mode) while not preserving the plugins from `storybookBaseConfig`. Before `3.3`, preserving them was a recommendation, but now it [became](https://github.com/storybookjs/storybook/pull/2578) a requirement.
### Refactored Knobs
@@ -4612,7 +4612,7 @@ Now we use:
- `preview-head.html` for including extra content into the preview pane.
- `manager-head.html` for including extra content into the manager window.
-[Read our docs](https://storybook.js.org/docs/react/configure/story-rendering#adding-to-head) for more details.
+[Read our docs](https://storybook.js.org/docs/configure/story-rendering#adding-to-head) for more details.
## From version 2.x.x to 3.x.x
diff --git a/README.md b/README.md
index 69fe2fb71cfa..130be9346feb 100644
--- a/README.md
+++ b/README.md
@@ -87,7 +87,7 @@ View [Component Encyclopedia](https://storybook.js.org/showcase) to see how lead
Use [storybook.new](https://storybook.new) to quickly create an example project in Stackblitz.
-Storybook comes with a lot of [addons](https://storybook.js.org/docs/react/configure/storybook-addons) for component design, documentation, testing, interactivity, and so on. Storybook's API makes it possible to configure and extend in various ways. It has even been extended to support React Native, Android, iOS, and Flutter development for mobile.
+Storybook comes with a lot of [addons](https://storybook.js.org/docs/configure/storybook-addons) for component design, documentation, testing, interactivity, and so on. Storybook's API makes it possible to configure and extend in various ways. It has even been extended to support React Native, Android, iOS, and Flutter development for mobile.
### Community
@@ -135,7 +135,7 @@ For additional help, join us in the [Storybook Discord](https://discord.gg/story
| [storysource](code/addons/storysource/) | View the code of your stories within the Storybook UI |
| [viewport](code/addons/viewport/) | Change display sizes and layouts for responsive components using Storybook |
-See [Addon / Framework Support Table](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+See [Addon / Framework Support Table](https://storybook.js.org/docs/api/frameworks-feature-support)
### Deprecated Addons
diff --git a/code/addons/a11y/README.md b/code/addons/a11y/README.md
index 7ff0d885ec0a..9d8a9c17884a 100755
--- a/code/addons/a11y/README.md
+++ b/code/addons/a11y/README.md
@@ -2,7 +2,7 @@
This Storybook addon can be helpful to make your UI components more accessible.
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
![Screenshot](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/a11y/docs/screenshot.png)
@@ -164,7 +164,7 @@ MyNonCheckedStory.parameters = {
## Parameters
For more customizability use parameters to configure [aXe options](https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#api-name-axeconfigure).
-You can override these options [at story level too](https://storybook.js.org/docs/react/configure/features-and-behavior#per-story-options).
+You can override these options [at story level too](https://storybook.js.org/docs/configure/features-and-behavior#per-story-options).
```js
import React from 'react';
diff --git a/code/addons/actions/ADVANCED.md b/code/addons/actions/ADVANCED.md
index 7cca56342dee..d71320209288 100644
--- a/code/addons/actions/ADVANCED.md
+++ b/code/addons/actions/ADVANCED.md
@@ -1,6 +1,6 @@
## Advanced/Legacy Actions usage
-For basic usage, see the [documentation](https://storybook.js.org/docs/react/essentials/actions).
+For basic usage, see the [documentation](https://storybook.js.org/docs/essentials/actions).
This document describes the pre-6.0 usage of the addon, and as such is no longer recommended (although it will be supported until at least 7.0).
diff --git a/code/addons/actions/README.md b/code/addons/actions/README.md
index 71bf4a2f53d6..edd8891387b2 100644
--- a/code/addons/actions/README.md
+++ b/code/addons/actions/README.md
@@ -2,19 +2,19 @@
Storybook Addon Actions can be used to display data received by event handlers in [Storybook](https://storybook.js.org).
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
![Screenshot](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/actions/docs/screenshot.png)
## Installation
-Actions is part of [essentials](https://storybook.js.org/docs/react/essentials/introduction) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
+Actions is part of [essentials](https://storybook.js.org/docs/essentials) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
```sh
npm i -D @storybook/addon-actions
```
-Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):
+Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure/#configure-your-storybook-project):
```js
export default {
@@ -24,4 +24,4 @@ export default {
## Usage
-The basic usage is documented in the [documentation](https://storybook.js.org/docs/react/essentials/actions). For legacy usage, see the [advanced README](./ADVANCED.md).
+The basic usage is documented in the [documentation](https://storybook.js.org/docs/essentials/actions). For legacy usage, see the [advanced README](./ADVANCED.md).
diff --git a/code/addons/backgrounds/README.md b/code/addons/backgrounds/README.md
index 62c88e19a7e7..1d509b0b6d9f 100644
--- a/code/addons/backgrounds/README.md
+++ b/code/addons/backgrounds/README.md
@@ -2,13 +2,13 @@
Storybook Addon Backgrounds can be used to change background colors inside the preview in [Storybook](https://storybook.js.org).
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
![React Storybook Screenshot](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/backgrounds/docs/addon-backgrounds.gif)
## Installation
-Backgrounds is part of [essentials](https://storybook.js.org/docs/react/essentials/introduction) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
+Backgrounds is part of [essentials](https://storybook.js.org/docs/essentials) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
```sh
npm i -D @storybook/addon-backgrounds
@@ -16,7 +16,7 @@ npm i -D @storybook/addon-backgrounds
## Configuration
-Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):
+Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure/#configure-your-storybook-project):
```js
export default {
@@ -26,4 +26,4 @@ export default {
## Usage
-The usage is documented in the [documentation](https://storybook.js.org/docs/react/essentials/backgrounds).
+The usage is documented in the [documentation](https://storybook.js.org/docs/essentials/backgrounds).
diff --git a/code/addons/controls/README.md b/code/addons/controls/README.md
index cb37957a0766..6ca8d4e9554b 100644
--- a/code/addons/controls/README.md
+++ b/code/addons/controls/README.md
@@ -2,19 +2,19 @@
[Storybook](https://storybook.js.org) Controls gives you a graphical UI to interact with a component's arguments dynamically, without needing to code. It creates an addon panel next to your component examples ("stories"), so you can edit them live.
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
![Screenshot](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/controls/docs/media/addon-controls-hero.gif)
## Installation
-Controls is part of [essentials](https://storybook.js.org/docs/react/essentials/introduction) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
+Controls is part of [essentials](https://storybook.js.org/docs/essentials) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
```sh
npm i -D @storybook/addon-controls
```
-Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):
+Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure/#configure-your-storybook-project):
```js
export default {
@@ -24,7 +24,7 @@ export default {
## Usage
-The usage is documented in the [documentation](https://storybook.js.org/docs/react/essentials/controls).
+The usage is documented in the [documentation](https://storybook.js.org/docs/essentials/controls).
## FAQs
@@ -92,7 +92,7 @@ export const Reflow = () => {
};
```
-And again, as above, this can be rewritten using [fully custom args](https://storybook.js.org/docs/react/essentials/controls#fully-custom-args):
+And again, as above, this can be rewritten using [fully custom args](https://storybook.js.org/docs/essentials/controls#fully-custom-args):
```jsx
export const Reflow = ({ count, label, ...args }) => (
@@ -123,7 +123,7 @@ Reflow.argTypes = {
There are a few known cases where controls can't be auto-generated:
-- You're using a framework for which automatic generation [isn't supported](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+- You're using a framework for which automatic generation [isn't supported](https://storybook.js.org/docs/api/frameworks-feature-support)
- You're trying to generate controls for a component defined in an external library
With a little manual work you can still use controls in such cases. Consider the following example:
@@ -147,7 +147,7 @@ Basic.args = {
};
```
-The `argTypes` annotation (which can also be applied to individual stories if needed), gives Storybook the hints it needs to generate controls in these unsupported cases. See [control annotations](https://storybook.js.org/docs/react/essentials/controls#annotation) for a full list of control types.
+The `argTypes` annotation (which can also be applied to individual stories if needed), gives Storybook the hints it needs to generate controls in these unsupported cases. See [control annotations](https://storybook.js.org/docs/essentials/controls#annotation) for a full list of control types.
It's also possible that your Storybook is misconfigured. If you think this might be the case, please search through Storybook's [Github issues](https://github.com/storybookjs/storybook/issues), and file a new issue if you don't find one that matches your use case.
@@ -172,7 +172,7 @@ CustomControls.argTypes = {
};
```
-Like [story parameters](https://storybook.js.org/docs/react/writing-stories/parameters), `args` and `argTypes` annotations are hierarchically merged, so story-level annotations overwrite component-level annotations.
+Like [story parameters](https://storybook.js.org/docs/writing-stories/parameters), `args` and `argTypes` annotations are hierarchically merged, so story-level annotations overwrite component-level annotations.
### How do controls work with MDX?
diff --git a/code/addons/docs/README.md b/code/addons/docs/README.md
index 9a9a3debad2a..0d59feff4505 100644
--- a/code/addons/docs/README.md
+++ b/code/addons/docs/README.md
@@ -76,7 +76,7 @@ For more information on `MDX`, see the [`MDX` reference](https://github.com/stor
Storybook Docs supports all view layers that Storybook supports except for React Native (currently). There are some framework-specific features as well, such as props tables and inline story rendering. The following page captures the current state of support:
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
**Note:** `#` = WIP support
@@ -156,11 +156,11 @@ export default {
`csfPluginOptions` is an object for configuring `@storybook/csf-plugin`. When set to `null` it tells docs not to run the `csf-plugin` at all, which can be used as an optimization, or if you're already using `csf-plugin` in your `main.js`.
-> With the release of version 7.0, it is no longer possible to import `.md` files directly into Storybook using the `transcludeMarkdown` [option](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#importing-plain-markdown-files-with-transcludemarkdown-has-changed). Instead, we recommend using the [`Markdown`](https://storybook.js.org/docs/react/api/doc-block-markdown) Doc Block for importing Markdown files into your Storybook documentation.
+> With the release of version 7.0, it is no longer possible to import `.md` files directly into Storybook using the `transcludeMarkdown` [option](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#importing-plain-markdown-files-with-transcludemarkdown-has-changed). Instead, we recommend using the [`Markdown`](https://storybook.js.org/docs/api/doc-block-markdown) Doc Block for importing Markdown files into your Storybook documentation.
## TypeScript configuration
-As of SB6 [TypeScript is zero-config](https://storybook.js.org/docs/react/configure/typescript) and should work with SB Docs out of the box. For advanced configuration options, refer to the [Props documentation](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/props-tables.md).
+As of SB6 [TypeScript is zero-config](https://storybook.js.org/docs/configure/typescript) and should work with SB Docs out of the box. For advanced configuration options, refer to the [Props documentation](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/props-tables.md).
## More resources
diff --git a/code/addons/docs/docs/docspage.md b/code/addons/docs/docs/docspage.md
index 8a8da1fc773a..a4b1d584b2fa 100644
--- a/code/addons/docs/docs/docspage.md
+++ b/code/addons/docs/docs/docspage.md
@@ -34,7 +34,7 @@ However, `DocsPage` brings the following improvements:
Storybook uses `component` to extract the component's description and props, and will rely on it further in future releases. We encourage you to add it to existing stories and use it in all new stories.
-Here's how to set the component in [Component Story Format (CSF)](https://storybook.js.org/docs/react/api/csf):
+Here's how to set the component in [Component Story Format (CSF)](https://storybook.js.org/docs/api/csf):
```js
import { Badge } from './Badge';
diff --git a/code/addons/docs/docs/mdx.md b/code/addons/docs/docs/mdx.md
index 50039fd7fa6e..cc871d1cd2aa 100644
--- a/code/addons/docs/docs/mdx.md
+++ b/code/addons/docs/docs/mdx.md
@@ -149,7 +149,7 @@ You can also use the rest of the MDX features in conjunction with embedding. Tha
## Decorators and parameters
-To add [decorators](https://storybook.js.org/docs/react/writing-stories/decorators) and [parameters](https://storybook.js.org/docs/react/writing-stories/parameters) in MDX:
+To add [decorators](https://storybook.js.org/docs/writing-stories/decorators) and [parameters](https://storybook.js.org/docs/writing-stories/parameters) in MDX:
```md
-These controls are implemented appear automatically in the props table when your story accepts [Storybook Args](https://storybook.js.org/docs/react/api/csf#args-story-inputs) as its input. This is done slightly differently depending on whether you're using `DocsPage` or `MDX`.
+These controls are implemented appear automatically in the props table when your story accepts [Storybook Args](https://storybook.js.org/docs/api/csf#args-story-inputs) as its input. This is done slightly differently depending on whether you're using `DocsPage` or `MDX`.
**DocsPage.** In [DocsPage](./docspage.md), simply write your story to consume args and the auto-generated props table will display controls in the right-most column:
@@ -83,7 +83,7 @@ export const WithControls = (args) => ;
```
-For a very detailed walkthrough of how to write stories that use controls, read the [documentation](https://storybook.js.org/docs/react/essentials/controls).
+For a very detailed walkthrough of how to write stories that use controls, read the [documentation](https://storybook.js.org/docs/essentials/controls).
## Customization
@@ -187,7 +187,7 @@ This would render a row with a modified description, a type display with a dropd
> - `type: 'number'` is shorthand for `type: { name: 'number' }`
> - `control: 'radio'` is shorthand for `control: { type: 'radio' }`
-Controls customization has an entire section in the [documentation](https://storybook.js.org/docs/react/essentials/controls#configuration).
+Controls customization has an entire section in the [documentation](https://storybook.js.org/docs/essentials/controls#configuration).
Here are the possible customizations for the rest of the prop table:
@@ -200,7 +200,7 @@ Here are the possible customizations for the rest of the prop table:
| `table.type.detail` | A longer version of the type (if it's a complex type) |
| `table.defaultValue.summary` | A short version of the default value |
| `table.defaultValue.detail` | A longer version of the default value (if it's a complex value) |
-| `control` | See [`addon-controls` README](https://storybook.js.org/docs/react/essentials/controls#configuration) |
+| `control` | See [`addon-controls` README](https://storybook.js.org/docs/essentials/controls#configuration) |
### Custom ArgTypes in MDX
diff --git a/code/addons/docs/docs/recipes.md b/code/addons/docs/docs/recipes.md
index df2892df89e4..c8e939fa96e1 100644
--- a/code/addons/docs/docs/recipes.md
+++ b/code/addons/docs/docs/recipes.md
@@ -279,7 +279,7 @@ These two methods are complementary. The former is useful for story-specific, an
What happens if you want to add some wrapper for your MDX page, or add some other kind of React context?
-When you're writing stories you can do this by adding a [decorator](https://storybook.js.org/docs/react/writing-stories/decorators), but when you're adding arbitrary JSX to your MDX documentation outside of a `` block, decorators no longer apply, and you need to use the `docs.container` parameter.
+When you're writing stories you can do this by adding a [decorator](https://storybook.js.org/docs/writing-stories/decorators), but when you're adding arbitrary JSX to your MDX documentation outside of a `` block, decorators no longer apply, and you need to use the `docs.container` parameter.
The closest Docs equivalent of a decorator is the `container`, a wrapper element that is rendered around the page that is being rendered. Here's an example of adding a solid red border around the page. It uses Storybook's default page container (that sets up various contexts and other magic) and then inserts its own logic between that container and the contents of the page:
diff --git a/code/addons/docs/docs/theming.md b/code/addons/docs/docs/theming.md
index a570ba61073a..5f190a584988 100644
--- a/code/addons/docs/docs/theming.md
+++ b/code/addons/docs/docs/theming.md
@@ -9,7 +9,7 @@
## Storybook theming
-Storybook theming is the **recommended way** to theme your docs. Docs uses the same theme system as [Storybook UI](https://storybook.js.org/docs/react/configure/theming), but is themed independently from the main UI.
+Storybook theming is the **recommended way** to theme your docs. Docs uses the same theme system as [Storybook UI](https://storybook.js.org/docs/configure/theming), but is themed independently from the main UI.
Supposing you have a Storybook theme defined for the main UI in `.storybook/manager.js`:
diff --git a/code/addons/essentials/README.md b/code/addons/essentials/README.md
index bdc351de5b74..4050ce64d57c 100644
--- a/code/addons/essentials/README.md
+++ b/code/addons/essentials/README.md
@@ -2,7 +2,7 @@
Storybook Essentials is a curated collection of addons to bring out the best of Storybook.
-Each addon is documented and maintained by the core team and will be upgraded alongside Storybook as the platform evolves. We will also do our best to maintain [framework support](https://storybook.js.org/docs/react/api/frameworks-feature-support) for all of the officially supported frameworks.
+Each addon is documented and maintained by the core team and will be upgraded alongside Storybook as the platform evolves. We will also do our best to maintain [framework support](https://storybook.js.org/docs/api/frameworks-feature-support) for all of the officially supported frameworks.
## Contents
diff --git a/code/addons/gfm/README.md b/code/addons/gfm/README.md
index 038d46c44d40..7397d2f345b8 100644
--- a/code/addons/gfm/README.md
+++ b/code/addons/gfm/README.md
@@ -6,6 +6,6 @@ The "@storybook/addon-mdx-gfm" addon is meant as a migration assistant for Story
> This addon will likely be removed in a future version.
It's recommended you read this document and follow its instructions instead:
-https://storybook.js.org/docs/react/writing-docs/mdx#lack-of-github-flavored-markdown-gfm
+https://storybook.js.org/docs/writing-docs/mdx#lack-of-github-flavored-markdown-gfm
Once you've made the necessary changes, you can remove the addon from your package.json and storybook config.
diff --git a/code/addons/gfm/src/index.ts b/code/addons/gfm/src/index.ts
index ecfc725fc231..b6a056ea4d0a 100644
--- a/code/addons/gfm/src/index.ts
+++ b/code/addons/gfm/src/index.ts
@@ -13,7 +13,7 @@ export const mdxLoaderOptions = async (config: any) => {
deprecate(dedent`
The "@storybook/addon-mdx-gfm" addon is meant as a migration assistant for Storybook 7.0; and will likely be removed in a future version.
It's recommended you read this document:
- https://storybook.js.org/docs/react/writing-docs/mdx#lack-of-github-flavored-markdown-gfm
+ https://storybook.js.org/docs/writing-docs/mdx#lack-of-github-flavored-markdown-gfm
Once you've made the necessary changes, you can remove the addon from your package.json and storybook config.
`);
diff --git a/code/addons/highlight/README.md b/code/addons/highlight/README.md
index e4b245acc5fd..94e2ceea098e 100644
--- a/code/addons/highlight/README.md
+++ b/code/addons/highlight/README.md
@@ -8,7 +8,7 @@ Use it to call attention to particular parts of the story. Or use it to enhance
## Usage
-This addon requires Storybook 6.5 or later. Highlight is part of [essentials](https://storybook.js.org/docs/react/essentials/introduction) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run the following command:
+This addon requires Storybook 6.5 or later. Highlight is part of [essentials](https://storybook.js.org/docs/essentials) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run the following command:
yarn:
diff --git a/code/addons/interactions/README.md b/code/addons/interactions/README.md
index 6167242008f9..c0b462b0b39d 100644
--- a/code/addons/interactions/README.md
+++ b/code/addons/interactions/README.md
@@ -58,4 +58,4 @@ message when a DOM element can't be found, it will also ensure your play functio
Any `args` that are marked as an `action` (typically via `argTypes` or `argTypesRegex`) will be automatically wrapped in
a [Jest mock function](https://jestjs.io/docs/jest-object#jestfnimplementation) so you can assert invocations. See
-[addon-actions](https://storybook.js.org/docs/react/essentials/actions) for how to setup actions.
+[addon-actions](https://storybook.js.org/docs/essentials/actions) for how to setup actions.
diff --git a/code/addons/interactions/src/components/InteractionsPanel.tsx b/code/addons/interactions/src/components/InteractionsPanel.tsx
index 6fad03daaf48..8f8647faeeb1 100644
--- a/code/addons/interactions/src/components/InteractionsPanel.tsx
+++ b/code/addons/interactions/src/components/InteractionsPanel.tsx
@@ -138,7 +138,7 @@ export const InteractionsPanel: React.FC = React.memo(
No interactions found
diff --git a/code/addons/jest/README.md b/code/addons/jest/README.md
index 50678d636094..9ce3a7835f86 100644
--- a/code/addons/jest/README.md
+++ b/code/addons/jest/README.md
@@ -2,7 +2,7 @@
Storybook addon for inspecting Jest unit test results.
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
[![Storybook Jest Addon Demo](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/jest/docs/storybook-addon-jest.gif)](http://storybooks-official.netlify.com/?selectedKind=Addons%7Cjest&selectedStory=withTests&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Ftests%2Fpanel)
@@ -20,7 +20,7 @@ Or if you're using yarn as a package manager:
## Configuration
-Register the addon in your [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):
+Register the addon in your [`.storybook/main.js`](https://storybook.js.org/docs/configure/#configure-your-storybook-project):
```js
export default {
@@ -84,7 +84,7 @@ Assuming that you have already created a test file for your component (e.g., `My
### Story-level
-In your story file, add a [decorator](https://storybook.js.org/docs/react/writing-stories/decorators) to your story's default export to display the results:
+In your story file, add a [decorator](https://storybook.js.org/docs/writing-stories/decorators) to your story's default export to display the results:
```js
// MyComponent.stories.js|jsx
@@ -102,7 +102,7 @@ export default {
};
```
-You can also add multiple tests results within your story by including the `jest` [parameter](https://storybook.js.org/docs/react/writing-stories/parameters), for example:
+You can also add multiple tests results within your story by including the `jest` [parameter](https://storybook.js.org/docs/writing-stories/parameters), for example:
```js
// MyComponent.stories.js|jsx
@@ -133,7 +133,7 @@ Default.parameters = {
### Global level
To avoid importing the results of the tests in each story, you can update
-your [`.storybook/preview.js`](https://storybook.js.org/docs/react/configure/overview#configure-story-rendering) and include a decorator allowing you to display the results only for the stories that have the `jest` parameter defined:
+your [`.storybook/preview.js`](https://storybook.js.org/docs/configure/#configure-story-rendering) and include a decorator allowing you to display the results only for the stories that have the `jest` parameter defined:
```js
// .storybook/preview.js
diff --git a/code/addons/links/README.md b/code/addons/links/README.md
index 8b8d94afff28..c4f4cb3ac6a4 100644
--- a/code/addons/links/README.md
+++ b/code/addons/links/README.md
@@ -2,7 +2,7 @@
The Storybook Links addon can be used to create links that navigate between stories in [Storybook](https://storybook.js.org).
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
## Getting Started
diff --git a/code/addons/measure/README.md b/code/addons/measure/README.md
index ca1387d474c8..985e4a72342d 100644
--- a/code/addons/measure/README.md
+++ b/code/addons/measure/README.md
@@ -12,7 +12,7 @@ Storybook addon for inspecting layouts and visualizing the box model.
## Usage
-This addon requires Storybook 6.3 or later. Measure is part of [essentials](https://storybook.js.org/docs/react/essentials/introduction) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
+This addon requires Storybook 6.3 or later. Measure is part of [essentials](https://storybook.js.org/docs/essentials) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
```sh
npm i -D @storybook/addon-measure
diff --git a/code/addons/outline/README.md b/code/addons/outline/README.md
index 301c140c3cff..c694fd947303 100644
--- a/code/addons/outline/README.md
+++ b/code/addons/outline/README.md
@@ -6,13 +6,13 @@ Storybook Addon Outline can be used for visually debugging CSS layout and alignm
## Usage
-Requires Storybook 6.1 or later. Outline is part of [essentials](https://storybook.js.org/docs/react/essentials/introduction) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
+Requires Storybook 6.1 or later. Outline is part of [essentials](https://storybook.js.org/docs/essentials) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
```sh
npm i -D @storybook/addon-outline
```
-Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):
+Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure/#configure-your-storybook-project):
```js
export default {
diff --git a/code/addons/storyshots-core/README.md b/code/addons/storyshots-core/README.md
index 8a20edd2c7f3..88a4b831e98e 100644
--- a/code/addons/storyshots-core/README.md
+++ b/code/addons/storyshots-core/README.md
@@ -2,7 +2,7 @@
StoryShots adds automatic Jest Snapshot Testing for [Storybook](https://storybook.js.org/).
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
![StoryShots In Action](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/storyshots/storyshots-core/docs/storyshots-fail.png)
@@ -470,7 +470,7 @@ Whenever you change your data requirements by adding (and rendering) or (acciden
## Using a custom directory
-Depending on your project's needs, you can configure the `@storybook/addon-storyshots` to use a custom directory for the snapshots. You can read more about it in the [official docs](https://storybook.js.org/docs/react/writing-tests/snapshot-testing).
+Depending on your project's needs, you can configure the `@storybook/addon-storyshots` to use a custom directory for the snapshots. You can read more about it in the [official docs](https://storybook.js.org/docs/writing-tests/snapshot-testing).
## Options
@@ -718,7 +718,7 @@ Like the default, but allows you to specify a set of options for the renderer, j
### `multiSnapshotWithOptions(options)`
Like `snapshotWithOptions`, but generate a separate snapshot file for each stories file rather than a single monolithic file (as is the convention in Jest). This makes it dramatically easier to review changes. If you'd like the benefit of separate snapshot files, but don't have custom options to pass, you can pass an empty object.
-If you use [Component Story Format](https://storybook.js.org/docs/react/api/csf), you may also need to add an additional Jest transform to automate detecting story file names:
+If you use [Component Story Format](https://storybook.js.org/docs/api/csf), you may also need to add an additional Jest transform to automate detecting story file names:
```js
// jest.config.js
diff --git a/code/addons/storysource/README.md b/code/addons/storysource/README.md
index e460cc6ac058..43e0e962f3c6 100644
--- a/code/addons/storysource/README.md
+++ b/code/addons/storysource/README.md
@@ -2,7 +2,7 @@
This addon is used to show stories source in the addon panel.
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
![Storysource Demo](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/storysource/docs/demo.gif)
@@ -56,7 +56,7 @@ To customize the `source-loader`, pass `loaderOptions`. Valid configurations are
## Theming
-Storysource will automatically use the light or dark syntax theme based on your storybook theme. See [Theming Storybook](https://storybook.js.org/docs/react/configure/theming) for more information.
+Storysource will automatically use the light or dark syntax theme based on your storybook theme. See [Theming Storybook](https://storybook.js.org/docs/configure/theming) for more information.
![Storysource Light/Dark Themes](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/storysource/docs/theming-light-dark.png)
diff --git a/code/addons/themes/README.md b/code/addons/themes/README.md
index 5ed36f2c4050..073011a59358 100644
--- a/code/addons/themes/README.md
+++ b/code/addons/themes/README.md
@@ -12,7 +12,7 @@ Requires Storybook 7.0 or later. If you need to add it to your Storybook, you ca
npm i -D @storybook/addon-themes
```
-Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):
+Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure/#configure-your-storybook-project):
```js
export default {
diff --git a/code/addons/toolbars/README.md b/code/addons/toolbars/README.md
index b6cf730ab141..487376e57949 100644
--- a/code/addons/toolbars/README.md
+++ b/code/addons/toolbars/README.md
@@ -6,19 +6,19 @@ The Toolbars addon controls global story rendering options from [Storybook's](ht
- set your components' internationalization (i18n) locale
- configure just about anything in Storybook that makes use of a global variable
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
![Screenshot](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/toolbars/docs/hero.gif)
## Installation
-Toolbars is part of [essentials](https://storybook.js.org/docs/react/essentials/introduction) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
+Toolbars is part of [essentials](https://storybook.js.org/docs/essentials) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
```sh
npm i -D @storybook/addon-toolbars
```
-Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):
+Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure/#configure-your-storybook-project):
```js
export default {
@@ -28,7 +28,7 @@ export default {
## Usage
-The usage is documented in the [documentation](https://storybook.js.org/docs/react/essentials/toolbars-and-globals).
+The usage is documented in the [documentation](https://storybook.js.org/docs/essentials/toolbars-and-globals).
## FAQs
@@ -40,6 +40,6 @@ The primary difference between the two packages is that `addon-toolbars` makes u
- **Standardization**. Args are built into Storybook in 6.x. Since `addon-toolbars` is based on args, you don't need to learn any addon-specific APIs to use it.
-- **Ergonomics**. Global args are easy to consume [in stories](https://storybook.js.org/docs/react/essentials/toolbars-and-globals#consuming-globals-from-within-a-story), in [Storybook Docs](https://github.com/storybookjs/storybook/tree/next/code/addons/docs), or even in other addons.
+- **Ergonomics**. Global args are easy to consume [in stories](https://storybook.js.org/docs/essentials/toolbars-and-globals#consuming-globals-from-within-a-story), in [Storybook Docs](https://github.com/storybookjs/storybook/tree/next/code/addons/docs), or even in other addons.
* **Framework compatibility**. Args are completely framework-independent, so `addon-toolbars` is compatible with React, Vue, Angular, etc. out of the box with no framework logic needed in the addon.
diff --git a/code/addons/viewport/README.md b/code/addons/viewport/README.md
index 196c5e0b0aa5..9a43bc10456a 100644
--- a/code/addons/viewport/README.md
+++ b/code/addons/viewport/README.md
@@ -2,19 +2,19 @@
Storybook Viewport Addon allows your stories to be displayed in different sizes and layouts in [Storybook](https://storybook.js.org). This helps build responsive components inside of Storybook.
-[Framework Support](https://storybook.js.org/docs/react/api/frameworks-feature-support)
+[Framework Support](https://storybook.js.org/docs/api/frameworks-feature-support)
![Screenshot](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/viewport/docs/viewport.png)
## Installation
-Viewport is part of [essentials](https://storybook.js.org/docs/react/essentials/introduction) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
+Viewport is part of [essentials](https://storybook.js.org/docs/essentials) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
```sh
npm i -D @storybook/addon-viewport
```
-Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):
+Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure/#configure-your-storybook-project):
```js
export default {
@@ -26,4 +26,4 @@ You should now be able to see the viewport addon icon in the the toolbar at the
## Usage
-The usage is documented in the [documentation](https://storybook.js.org/docs/react/essentials/viewport).
+The usage is documented in the [documentation](https://storybook.js.org/docs/essentials/viewport).
diff --git a/code/frameworks/angular/README.md b/code/frameworks/angular/README.md
index d97e1ab93f2a..5fab422b76ad 100644
--- a/code/frameworks/angular/README.md
+++ b/code/frameworks/angular/README.md
@@ -316,9 +316,9 @@ In this case you have to adjust your `angular.json` and `package.json` as descri
You can run `npx sb init` sequentially for each project to setup Storybook for each of them to automatically create the `.storybook` folder and create the necessary configuration in your `angular.json`.
-You can then use [Storybook composition](https://storybook.js.org/docs/angular/sharing/storybook-composition) to composite multiple Storybooks into one.
+You can then use [Storybook composition](https://storybook.js.org/docs/sharing/storybook-composition) to composite multiple Storybooks into one.
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
-You can also build a [static version](https://storybook.js.org/docs/angular/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
+You can also build a [static version](https://storybook.js.org/docs/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
diff --git a/code/frameworks/angular/src/builders/build-storybook/schema.json b/code/frameworks/angular/src/builders/build-storybook/schema.json
index 6b614e574172..b56cda373376 100644
--- a/code/frameworks/angular/src/builders/build-storybook/schema.json
+++ b/code/frameworks/angular/src/builders/build-storybook/schema.json
@@ -46,7 +46,7 @@
},
"docs": {
"type": "boolean",
- "description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation.",
+ "description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/writing-docs/build-documentation#preview-storybooks-documentation.",
"default": false
},
"test": {
diff --git a/code/frameworks/angular/src/builders/start-storybook/schema.json b/code/frameworks/angular/src/builders/start-storybook/schema.json
index 2b98bab9039c..74d4eba49ad5 100644
--- a/code/frameworks/angular/src/builders/start-storybook/schema.json
+++ b/code/frameworks/angular/src/builders/start-storybook/schema.json
@@ -78,7 +78,7 @@
},
"docs": {
"type": "boolean",
- "description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation.",
+ "description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/writing-docs/build-documentation#preview-storybooks-documentation.",
"default": false
},
"compodoc": {
diff --git a/code/frameworks/angular/template/cli/Button.stories.ts b/code/frameworks/angular/template/cli/Button.stories.ts
index 8f280fb0c763..3809c0e3dd19 100644
--- a/code/frameworks/angular/template/cli/Button.stories.ts
+++ b/code/frameworks/angular/template/cli/Button.stories.ts
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from '@storybook/angular';
import Button from './button.component';
-// More on how to set up stories at: https://storybook.js.org/docs/angular/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta: Meta
Learn more
@@ -128,7 +128,7 @@ export const RightArrow = () => Publish to Chromatic
Publish your Storybook to review and collaborate with your entire team.
Learn more
@@ -144,7 +144,7 @@ export const RightArrow = () => Embed your stories into Figma to cross-reference the design and live
implementation in one place.
Learn more
@@ -160,7 +160,7 @@ export const RightArrow = () => Use stories to test a component in all its variations, no matter how
complex.
Learn more
@@ -175,7 +175,7 @@ export const RightArrow = () => Accessibility
Automatically test your components for a11y issues as you develop.
Theme Storybook's UI to personalize it to your project.
Learn more
diff --git a/code/frameworks/nextjs/template/cli/js/Header.stories.js b/code/frameworks/nextjs/template/cli/js/Header.stories.js
index 704a8c699534..a1d32b3ad65e 100644
--- a/code/frameworks/nextjs/template/cli/js/Header.stories.js
+++ b/code/frameworks/nextjs/template/cli/js/Header.stories.js
@@ -3,10 +3,10 @@ import { Header } from './Header';
export default {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
diff --git a/code/frameworks/nextjs/template/cli/js/Page.stories.js b/code/frameworks/nextjs/template/cli/js/Page.stories.js
index f339fa246d39..53362f140e61 100644
--- a/code/frameworks/nextjs/template/cli/js/Page.stories.js
+++ b/code/frameworks/nextjs/template/cli/js/Page.stories.js
@@ -5,14 +5,14 @@ export default {
title: 'Example/Page',
component: Page,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
export const LoggedOut = {};
-// More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/frameworks/nextjs/template/cli/ts-3-8/Button.stories.ts b/code/frameworks/nextjs/template/cli/ts-3-8/Button.stories.ts
index 7d049116d13f..b65080126a44 100644
--- a/code/frameworks/nextjs/template/cli/ts-3-8/Button.stories.ts
+++ b/code/frameworks/nextjs/template/cli/ts-3-8/Button.stories.ts
@@ -2,17 +2,17 @@ import type { Meta, StoryObj } from '@storybook/react';
import { Button } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
const meta: Meta = {
title: 'Example/Button',
component: Button,
parameters: {
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'centered',
},
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
- // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
backgroundColor: { control: 'color' },
},
@@ -21,7 +21,7 @@ const meta: Meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/frameworks/nextjs/template/cli/ts-3-8/Configure.mdx b/code/frameworks/nextjs/template/cli/ts-3-8/Configure.mdx
index e05f151edf74..055a3c564efc 100644
--- a/code/frameworks/nextjs/template/cli/ts-3-8/Configure.mdx
+++ b/code/frameworks/nextjs/template/cli/ts-3-8/Configure.mdx
@@ -52,7 +52,7 @@ export const RightArrow = () => Add styling and CSS
Like with web applications, there are many ways to include CSS within Storybook. Learn more about setting up styling within Storybook.
Learn more
@@ -67,7 +67,7 @@ export const RightArrow = () => Provide context and mocking
Often when a story doesn't render, it's because your component is expecting a specific environment or context (like a theme provider) to be available.
Learn more
@@ -85,7 +85,7 @@ export const RightArrow = () => Learn more
@@ -113,7 +113,7 @@ export const RightArrow = () => Auto-generate living,
interactive reference documentation from your components and stories.
Learn more
@@ -128,7 +128,7 @@ export const RightArrow = () => Publish to Chromatic
Publish your Storybook to review and collaborate with your entire team.
Learn more
@@ -144,7 +144,7 @@ export const RightArrow = () => Embed your stories into Figma to cross-reference the design and live
implementation in one place.
Learn more
@@ -160,7 +160,7 @@ export const RightArrow = () => Use stories to test a component in all its variations, no matter how
complex.
Learn more
@@ -175,7 +175,7 @@ export const RightArrow = () => Accessibility
Automatically test your components for a11y issues as you develop.
Theme Storybook's UI to personalize it to your project.
Learn more
diff --git a/code/frameworks/nextjs/template/cli/ts-3-8/Header.stories.ts b/code/frameworks/nextjs/template/cli/ts-3-8/Header.stories.ts
index 448685eab0eb..82a109720879 100644
--- a/code/frameworks/nextjs/template/cli/ts-3-8/Header.stories.ts
+++ b/code/frameworks/nextjs/template/cli/ts-3-8/Header.stories.ts
@@ -4,10 +4,10 @@ import { Header } from './Header';
const meta: Meta = {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
diff --git a/code/frameworks/nextjs/template/cli/ts-3-8/Page.stories.ts b/code/frameworks/nextjs/template/cli/ts-3-8/Page.stories.ts
index c072a1cc43ed..4bcf593cafa7 100644
--- a/code/frameworks/nextjs/template/cli/ts-3-8/Page.stories.ts
+++ b/code/frameworks/nextjs/template/cli/ts-3-8/Page.stories.ts
@@ -7,7 +7,7 @@ const meta: Meta = {
title: 'Example/Page',
component: Page,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
@@ -17,7 +17,7 @@ type Story = StoryObj;
export const LoggedOut: Story = {};
-// More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/frameworks/nextjs/template/cli/ts-4-9/Button.stories.ts b/code/frameworks/nextjs/template/cli/ts-4-9/Button.stories.ts
index 7a68cbfec557..742c3aa7b029 100644
--- a/code/frameworks/nextjs/template/cli/ts-4-9/Button.stories.ts
+++ b/code/frameworks/nextjs/template/cli/ts-4-9/Button.stories.ts
@@ -2,17 +2,17 @@ import type { Meta, StoryObj } from '@storybook/react';
import { Button } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
const meta = {
title: 'Example/Button',
component: Button,
parameters: {
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'centered',
},
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
- // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
backgroundColor: { control: 'color' },
},
@@ -21,7 +21,7 @@ const meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/frameworks/nextjs/template/cli/ts-4-9/Configure.mdx b/code/frameworks/nextjs/template/cli/ts-4-9/Configure.mdx
index e05f151edf74..055a3c564efc 100644
--- a/code/frameworks/nextjs/template/cli/ts-4-9/Configure.mdx
+++ b/code/frameworks/nextjs/template/cli/ts-4-9/Configure.mdx
@@ -52,7 +52,7 @@ export const RightArrow = () => Add styling and CSS
Like with web applications, there are many ways to include CSS within Storybook. Learn more about setting up styling within Storybook.
Learn more
@@ -67,7 +67,7 @@ export const RightArrow = () => Provide context and mocking
Often when a story doesn't render, it's because your component is expecting a specific environment or context (like a theme provider) to be available.
Learn more
@@ -85,7 +85,7 @@ export const RightArrow = () => Learn more
@@ -113,7 +113,7 @@ export const RightArrow = () => Auto-generate living,
interactive reference documentation from your components and stories.
Learn more
@@ -128,7 +128,7 @@ export const RightArrow = () => Publish to Chromatic
Publish your Storybook to review and collaborate with your entire team.
Learn more
@@ -144,7 +144,7 @@ export const RightArrow = () => Embed your stories into Figma to cross-reference the design and live
implementation in one place.
Learn more
@@ -160,7 +160,7 @@ export const RightArrow = () => Use stories to test a component in all its variations, no matter how
complex.
Learn more
@@ -175,7 +175,7 @@ export const RightArrow = () => Accessibility
Automatically test your components for a11y issues as you develop.
Theme Storybook's UI to personalize it to your project.
Learn more
diff --git a/code/frameworks/nextjs/template/cli/ts-4-9/Header.stories.ts b/code/frameworks/nextjs/template/cli/ts-4-9/Header.stories.ts
index b0766a5a4839..046982e62673 100644
--- a/code/frameworks/nextjs/template/cli/ts-4-9/Header.stories.ts
+++ b/code/frameworks/nextjs/template/cli/ts-4-9/Header.stories.ts
@@ -4,10 +4,10 @@ import { Header } from './Header';
const meta = {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
} satisfies Meta;
diff --git a/code/frameworks/nextjs/template/cli/ts-4-9/Page.stories.ts b/code/frameworks/nextjs/template/cli/ts-4-9/Page.stories.ts
index 622858e72e7f..f7a06817f85a 100644
--- a/code/frameworks/nextjs/template/cli/ts-4-9/Page.stories.ts
+++ b/code/frameworks/nextjs/template/cli/ts-4-9/Page.stories.ts
@@ -7,7 +7,7 @@ const meta = {
title: 'Example/Page',
component: Page,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
} satisfies Meta;
@@ -17,7 +17,7 @@ type Story = StoryObj;
export const LoggedOut: Story = {};
-// More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/frameworks/preact-vite/README.md b/code/frameworks/preact-vite/README.md
index e418166a3b54..01791b18fc2f 100644
--- a/code/frameworks/preact-vite/README.md
+++ b/code/frameworks/preact-vite/README.md
@@ -15,7 +15,7 @@ Follow the prompts after running this command in your Preact project's root dire
npx storybook@latest init
```
-[More on getting started with Storybook](https://storybook.js.org/docs/preact/get-started/install)
+[More on getting started with Storybook](https://storybook.js.org/docs/get-started/install)
### In a project with Storybook
diff --git a/code/frameworks/preact-webpack5/README.md b/code/frameworks/preact-webpack5/README.md
index 0402d392c40b..aa053f8fe6d7 100644
--- a/code/frameworks/preact-webpack5/README.md
+++ b/code/frameworks/preact-webpack5/README.md
@@ -20,10 +20,10 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
-You can also build a [static version](https://storybook.js.org/docs/preact/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
+You can also build a [static version](https://storybook.js.org/docs/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
## Docs
-- [Basics](https://storybook.js.org/docs/preact/get-started/introduction)
-- [Configurations](https://storybook.js.org/docs/preact/configure/overview)
-- [Addons](https://storybook.js.org/docs/preact/configure/storybook-addons)
+- [Basics](https://storybook.js.org/docs/get-started)
+- [Configurations](https://storybook.js.org/docs/configure)
+- [Addons](https://storybook.js.org/docs/configure/storybook-addons)
diff --git a/code/frameworks/react-webpack5/README.md b/code/frameworks/react-webpack5/README.md
index 68e2ff7255c4..61832a9124e6 100644
--- a/code/frameworks/react-webpack5/README.md
+++ b/code/frameworks/react-webpack5/README.md
@@ -20,7 +20,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
-You can also build a [static version](https://storybook.js.org/docs/react/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
+You can also build a [static version](https://storybook.js.org/docs/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
Here are some featured storybooks that you can reference to see how Storybook works:
@@ -42,6 +42,6 @@ But you probably also need to use types from `@types/node @types/react`.
## Docs
-- [Basics](https://storybook.js.org/docs/react/get-started/introduction)
-- [Configurations](https://storybook.js.org/docs/react/configure/overview)
-- [Addons](https://storybook.js.org/docs/react/configure/storybook-addons)
+- [Basics](https://storybook.js.org/docs/get-started)
+- [Configurations](https://storybook.js.org/docs/configure)
+- [Addons](https://storybook.js.org/docs/configure/storybook-addons)
diff --git a/code/frameworks/svelte-webpack5/README.md b/code/frameworks/svelte-webpack5/README.md
index d490ff6af11c..988d8d366fe5 100644
--- a/code/frameworks/svelte-webpack5/README.md
+++ b/code/frameworks/svelte-webpack5/README.md
@@ -20,7 +20,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
-You can also build a [static version](https://storybook.js.org/docs/svelte/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
+You can also build a [static version](https://storybook.js.org/docs/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
## TODOs
diff --git a/code/frameworks/sveltekit/README.md b/code/frameworks/sveltekit/README.md
index fd103c8764b1..be5184f8e561 100644
--- a/code/frameworks/sveltekit/README.md
+++ b/code/frameworks/sveltekit/README.md
@@ -38,7 +38,7 @@ However SvelteKit has some [Kit-specific modules](https://kit.svelte.dev/docs/mo
| [`$service-worker`](https://kit.svelte.dev/docs/modules#$service-worker) | β Not supported | They are only meant to be used in service workers |
| [`@sveltejs/kit/*`](https://kit.svelte.dev/docs/modules#sveltejs-kit) | β Supported | |
-This is just the beginning. We're close to adding basic support for many of the SvelteKit features. Longer term we're planning on making it an even better experience to [build](https://storybook.js.org/docs/svelte/writing-stories/introduction), [test](https://storybook.js.org/docs/svelte/writing-tests/introduction) and [document](https://storybook.js.org/docs/svelte/writing-docs/introduction) all the SvelteKit goodies like [pages](https://kit.svelte.dev/docs/routing), [forms](https://kit.svelte.dev/docs/form-actions) and [layouts](https://kit.svelte.dev/docs/routing#layout) in Storybook, while still integrating with all the addons and workflows you know and love.
+This is just the beginning. We're close to adding basic support for many of the SvelteKit features. Longer term we're planning on making it an even better experience to [build](https://storybook.js.org/docs/writing-stories), [test](https://storybook.js.org/docs/writing-tests) and [document](https://storybook.js.org/docs/writing-docs) all the SvelteKit goodies like [pages](https://kit.svelte.dev/docs/routing), [forms](https://kit.svelte.dev/docs/form-actions) and [layouts](https://kit.svelte.dev/docs/routing#layout) in Storybook, while still integrating with all the addons and workflows you know and love.
## Requirements
@@ -55,7 +55,7 @@ Run the following command in your SvelteKit project's root directory, and follow
npx storybook@latest init
```
-[More on getting started with Storybook](https://storybook.js.org/docs/svelte/get-started/install)
+[More on getting started with Storybook](https://storybook.js.org/docs/get-started/install)
### In a project with Storybook
diff --git a/code/frameworks/vue-vite/README.md b/code/frameworks/vue-vite/README.md
index f19ebc711b42..2bae96b519ad 100644
--- a/code/frameworks/vue-vite/README.md
+++ b/code/frameworks/vue-vite/README.md
@@ -24,7 +24,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
-You can also build a [static version](https://storybook.js.org/docs/vue/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
+You can also build a [static version](https://storybook.js.org/docs/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
## Vue Notes
diff --git a/code/frameworks/vue-webpack5/README.md b/code/frameworks/vue-webpack5/README.md
index 9af5a6d0512f..fb19120fdc02 100644
--- a/code/frameworks/vue-webpack5/README.md
+++ b/code/frameworks/vue-webpack5/README.md
@@ -24,7 +24,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
-You can also build a [static version](https://storybook.js.org/docs/vue/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
+You can also build a [static version](https://storybook.js.org/docs/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
## Vue Notes
diff --git a/code/frameworks/vue3-vite/README.md b/code/frameworks/vue3-vite/README.md
index 1eadfa5c7b7a..ef5535833990 100644
--- a/code/frameworks/vue3-vite/README.md
+++ b/code/frameworks/vue3-vite/README.md
@@ -20,7 +20,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
-You can also build a [static version](https://storybook.js.org/docs/vue/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
+You can also build a [static version](https://storybook.js.org/docs/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
## Extending the Vue application
diff --git a/code/frameworks/vue3-webpack5/README.md b/code/frameworks/vue3-webpack5/README.md
index 3795b03d961f..fb0317a041ab 100644
--- a/code/frameworks/vue3-webpack5/README.md
+++ b/code/frameworks/vue3-webpack5/README.md
@@ -20,7 +20,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
-You can also build a [static version](https://storybook.js.org/docs/vue/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
+You can also build a [static version](https://storybook.js.org/docs/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
## Extending the Vue application
diff --git a/code/frameworks/web-components-webpack5/README.md b/code/frameworks/web-components-webpack5/README.md
index 4562b5dc35ee..9186a85f3641 100644
--- a/code/frameworks/web-components-webpack5/README.md
+++ b/code/frameworks/web-components-webpack5/README.md
@@ -22,7 +22,7 @@ For more information visit: [storybook.js.org](https://storybook.js.org)
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
-You can also build a [static version](https://storybook.js.org/docs/web-components/sharing/publish-storybook) of your storybook and deploy it anywhere you want.
+You can also build a [static version](https://storybook.js.org/docs/sharing/publish-storybook) of your storybook and deploy it anywhere you want.
# Hot Module Reloading (HMR)
diff --git a/code/lib/cli/rendererAssets/common/Configure.mdx b/code/lib/cli/rendererAssets/common/Configure.mdx
index 40b04abb105a..a3d3c80985fb 100644
--- a/code/lib/cli/rendererAssets/common/Configure.mdx
+++ b/code/lib/cli/rendererAssets/common/Configure.mdx
@@ -123,7 +123,7 @@ export const RightArrow = () => Use stories to test a component in all its variations, no matter how
complex.
Learn more
diff --git a/code/lib/cli/src/automigrate/fixes/mdx-gfm.ts b/code/lib/cli/src/automigrate/fixes/mdx-gfm.ts
index 1601dce89572..f643978be1da 100644
--- a/code/lib/cli/src/automigrate/fixes/mdx-gfm.ts
+++ b/code/lib/cli/src/automigrate/fixes/mdx-gfm.ts
@@ -76,7 +76,7 @@ export const mdxgfm: Fix = {
Storybook 7.0 uses MDX2 for compiling MDX, and thus no longer supports GFM out of the box.
Because of this you need to explicitly add the GFM plugin in the addon-docs options:
- https://storybook.js.org/docs/react/writing-docs/mdx#lack-of-github-flavored-markdown-gfm
+ https://storybook.js.org/docs/writing-docs/mdx#lack-of-github-flavored-markdown-gfm
We recommend you follow the guide on the link above, however we can add a temporary storybook addon that helps make this migration easier.
We'll install the addon and add it to your storybook config.
diff --git a/code/lib/cli/src/automigrate/fixes/wrap-require.ts b/code/lib/cli/src/automigrate/fixes/wrap-require.ts
index 509b51bae989..9fc7822ae1ac 100644
--- a/code/lib/cli/src/automigrate/fixes/wrap-require.ts
+++ b/code/lib/cli/src/automigrate/fixes/wrap-require.ts
@@ -49,7 +49,7 @@ export const wrapRequire: Fix = {
} project.
For Storybook to work correctly, some fields in your main config must be updated. We can do this for you automatically.
- More info: https://storybook.js.org/docs/react/faq#how-do-i-fix-module-resolution-in-special-environments`;
+ More info: https://storybook.js.org/docs/faq#how-do-i-fix-module-resolution-in-special-environments`;
},
async run({ dryRun, mainConfigPath, result }) {
diff --git a/code/lib/cli/src/initiate.ts b/code/lib/cli/src/initiate.ts
index e2966a0c1798..0ae46b6a820d 100644
--- a/code/lib/cli/src/initiate.ts
+++ b/code/lib/cli/src/initiate.ts
@@ -175,7 +175,7 @@ const installStorybook = async (
default:
paddedLog(`We couldn't detect your project type. (code: ${projectType})`);
paddedLog(
- 'You can specify a project type explicitly via `storybook init --type `, see our docs on how to configure Storybook for your framework: https://storybook.js.org/docs/react/get-started/install'
+ 'You can specify a project type explicitly via `storybook init --type `, see our docs on how to configure Storybook for your framework: https://storybook.js.org/docs/get-started/install'
);
// Add a new line for the clear visibility.
diff --git a/code/lib/core-common/src/presets.ts b/code/lib/core-common/src/presets.ts
index 3a3a2db0ce97..9c494f63b325 100644
--- a/code/lib/core-common/src/presets.ts
+++ b/code/lib/core-common/src/presets.ts
@@ -196,7 +196,7 @@ const map =
resolved = resolveAddonName(configDir, name, options);
} catch (err) {
logger.error(
- `Addon value should end in /manager or /preview or /register OR it should be a valid preset https://storybook.js.org/docs/react/addons/writing-presets/\n${item}`
+ `Addon value should end in /manager or /preview or /register OR it should be a valid preset https://storybook.js.org/docs/addons/writing-presets/\n${item}`
);
return undefined;
}
diff --git a/code/lib/core-events/src/errors/server-errors.ts b/code/lib/core-events/src/errors/server-errors.ts
index 951a482e9570..571ab4d4fe1c 100644
--- a/code/lib/core-events/src/errors/server-errors.ts
+++ b/code/lib/core-events/src/errors/server-errors.ts
@@ -126,7 +126,7 @@ export class ConflictingStaticDirConfigError extends StorybookError {
readonly code = 1;
public readonly documentation =
- 'https://storybook.js.org/docs/react/configure/images-and-assets#serving-static-files-via-storybook-configuration';
+ 'https://storybook.js.org/docs/configure/images-and-assets#serving-static-files-via-storybook-configuration';
template() {
return dedent`
@@ -145,7 +145,7 @@ export class InvalidStoriesEntryError extends StorybookError {
readonly code = 4;
public readonly documentation =
- 'https://storybook.js.org/docs/react/faq#can-i-have-a-storybook-with-no-local-stories';
+ 'https://storybook.js.org/docs/faq#can-i-have-a-storybook-with-no-local-stories';
template() {
return dedent`
@@ -164,7 +164,7 @@ export class WebpackMissingStatsError extends StorybookError {
public documentation = [
'https://webpack.js.org/configuration/stats/',
- 'https://storybook.js.org/docs/react/builders/webpack#configure',
+ 'https://storybook.js.org/docs/builders/webpack#configure',
];
template() {
@@ -242,7 +242,7 @@ export class MissingAngularJsonError extends StorybookError {
readonly code = 2;
public readonly documentation =
- 'https://storybook.js.org/docs/angular/faq#error-no-angularjson-file-found';
+ 'https://storybook.js.org/docs/faq#error-no-angularjson-file-found';
constructor(
public data: {
diff --git a/code/lib/csf-tools/src/CsfFile.ts b/code/lib/csf-tools/src/CsfFile.ts
index 15ab39abdc45..b33eb389d12a 100644
--- a/code/lib/csf-tools/src/CsfFile.ts
+++ b/code/lib/csf-tools/src/CsfFile.ts
@@ -117,7 +117,7 @@ export class NoMetaError extends Error {
super(dedent`
CSF: ${message} ${formatLocation(ast, fileName)}
- More info: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
+ More info: https://storybook.js.org/docs/writing-stories#default-export
`);
this.name = this.constructor.name;
}
@@ -481,7 +481,7 @@ export class CsfFile {
throw new Error(dedent`
CSF: missing title/component ${formatLocation(self._ast, self._fileName)}
- More info: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
+ More info: https://storybook.js.org/docs/writing-stories#default-export
`);
}
diff --git a/code/lib/preview-api/docs/storiesOf.md b/code/lib/preview-api/docs/storiesOf.md
index 00f3b2945879..41b540edaa7d 100644
--- a/code/lib/preview-api/docs/storiesOf.md
+++ b/code/lib/preview-api/docs/storiesOf.md
@@ -2,7 +2,7 @@
`storiesOf` is Storybook's Legacy API for adding stories. Up until Storybook 5.2, it has been the primary way to create stories in Storybook.
-In Storybook 5.2 we introduced a simpler and more portable [Component Story Format](https://storybook.js.org/docs/react/api/csf), and all future tools and infrastructure will be oriented towards CSF. Therefore, we recommend migrating your stories out of `storiesOf` API, and even provide [automated tools to do this](#component-story-format-migration).
+In Storybook 5.2 we introduced a simpler and more portable [Component Story Format](https://storybook.js.org/docs/api/csf), and all future tools and infrastructure will be oriented towards CSF. Therefore, we recommend migrating your stories out of `storiesOf` API, and even provide [automated tools to do this](#component-story-format-migration).
That said, the `storiesOf` API is not officially deprecated. For the time being we plan to support it for the foreseeable future.
@@ -37,7 +37,7 @@ Each `.add` call takes a story name, a story function that returns a renderable
## Decorators and parameters
-[Decorators](https://storybook.js.org/docs/react/writing-stories/decorators) and [parameters](https://storybook.js.org/docs/react/writing-stories/parameters) can be specified globally, at the component level, or locally at the story level.
+[Decorators](https://storybook.js.org/docs/writing-stories/decorators) and [parameters](https://storybook.js.org/docs/writing-stories/parameters) can be specified globally, at the component level, or locally at the story level.
In the `storiesOf` API, story-level parameters are provided as a third argument to `.add`:
@@ -84,11 +84,11 @@ storiesOf('Button', module)
));
```
-Parameters and decorators can also be used globally, you can define them in your .storybook/preview.js. Take a look [here](https://storybook.js.org/docs/react/writing-stories/parameters#global-parameters) to learn more about global parameters and [here](https://storybook.js.org/docs/react/writing-stories/decorators#global-decorators) for global decorators.
+Parameters and decorators can also be used globally, you can define them in your .storybook/preview.js. Take a look [here](https://storybook.js.org/docs/writing-stories/parameters#global-parameters) to learn more about global parameters and [here](https://storybook.js.org/docs/writing-stories/decorators#global-decorators) for global decorators.
## Component Story Format migration
-To make it easier to adopt the new [Component Story Format (CSF)](https://storybook.js.org/docs/react/api/csf), we've created an automatic migration tool to transform `storiesOf` API to Module format.
+To make it easier to adopt the new [Component Story Format (CSF)](https://storybook.js.org/docs/api/csf), we've created an automatic migration tool to transform `storiesOf` API to Module format.
```sh
sb migrate storiesof-to-csf --glob=src/**/*.stories.js
diff --git a/code/lib/preview-api/src/modules/preview-web/parseArgsParam.ts b/code/lib/preview-api/src/modules/preview-web/parseArgsParam.ts
index 3212a95b3e96..99c8679e29b3 100644
--- a/code/lib/preview-api/src/modules/preview-web/parseArgsParam.ts
+++ b/code/lib/preview-api/src/modules/preview-web/parseArgsParam.ts
@@ -70,7 +70,7 @@ export const parseArgsParam = (argsString: string): Args => {
once.warn(dedent`
Omitted potentially unsafe URL args.
- More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url
+ More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
`);
return acc;
}, {} as Args);
diff --git a/code/lib/preview-api/src/modules/store/args.ts b/code/lib/preview-api/src/modules/store/args.ts
index 2634015bce76..5ad945420e86 100644
--- a/code/lib/preview-api/src/modules/store/args.ts
+++ b/code/lib/preview-api/src/modules/store/args.ts
@@ -89,7 +89,7 @@ export const validateOptions = (args: Args, argTypes: ArgTypes): Args => {
once.error(dedent`
Invalid argType: '${key}.options' should be an array.
- More info: https://storybook.js.org/docs/react/api/argtypes
+ More info: https://storybook.js.org/docs/api/argtypes
`);
return allowArg();
}
@@ -98,7 +98,7 @@ export const validateOptions = (args: Args, argTypes: ArgTypes): Args => {
once.error(dedent`
Invalid argType: '${key}.options' should only contain primitives. Use a 'mapping' for complex values.
- More info: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values
+ More info: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
`);
return allowArg();
}
diff --git a/code/lib/preview-api/src/modules/store/inferArgTypes.ts b/code/lib/preview-api/src/modules/store/inferArgTypes.ts
index 46cd93dc9024..cdab91cf6f00 100644
--- a/code/lib/preview-api/src/modules/store/inferArgTypes.ts
+++ b/code/lib/preview-api/src/modules/store/inferArgTypes.ts
@@ -22,8 +22,8 @@ const inferType = (value: any, name: string, visited: Set): SBType => {
We've detected a cycle in arg '${name}'. Args should be JSON-serializable.
Consider using the mapping feature or fully custom args:
- - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values
- - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args
+ - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
+ - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
`);
return { name: 'other', value: 'cyclic object' };
}
diff --git a/code/lib/router/src/utils.ts b/code/lib/router/src/utils.ts
index 94d1d6860538..00bea29b0900 100644
--- a/code/lib/router/src/utils.ts
+++ b/code/lib/router/src/utils.ts
@@ -131,7 +131,7 @@ export const buildArgsParam = (initialArgs: Args | undefined, args: Args): strin
once.warn(dedent`
Omitted potentially unsafe URL args.
- More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url
+ More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
`);
return acc;
}, {} as Args);
diff --git a/code/lib/test/src/testing-library.ts b/code/lib/test/src/testing-library.ts
index ccac1f448923..5f3c68f16df9 100644
--- a/code/lib/test/src/testing-library.ts
+++ b/code/lib/test/src/testing-library.ts
@@ -24,7 +24,7 @@ testingLibrary.screen = new Proxy(testingLibrary.screen, {
get(target, prop, receiver) {
once.warn(dedent`
You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
- More info: https://storybook.js.org/docs/react/essentials/interactions
+ More info: https://storybook.js.org/docs/essentials/interactions
`);
return Reflect.get(target, prop, receiver);
},
diff --git a/code/lib/types/src/modules/addons.ts b/code/lib/types/src/modules/addons.ts
index ef76feb2560c..53464fbd37e3 100644
--- a/code/lib/types/src/modules/addons.ts
+++ b/code/lib/types/src/modules/addons.ts
@@ -184,19 +184,19 @@ export interface Addon_BaseAnnotations<
> {
/**
* Dynamic data that are provided (and possibly updated by) Storybook and its addons.
- * @see [Arg story inputs](https://storybook.js.org/docs/react/api/csf#args-story-inputs)
+ * @see [Arg story inputs](https://storybook.js.org/docs/api/csf#args-story-inputs)
*/
args?: Partial;
/**
* ArgTypes encode basic metadata for args, such as `name`, `description`, `defaultValue` for an arg. These get automatically filled in by Storybook Docs.
- * @see [Arg types](https://storybook.js.org/docs/react/api/arg-types)
+ * @see [Arg types](https://storybook.js.org/docs/api/arg-types)
*/
argTypes?: Addons_ArgTypes;
/**
* Custom metadata for a story.
- * @see [Parameters](https://storybook.js.org/docs/react/writing-stories/parameters)
+ * @see [Parameters](https://storybook.js.org/docs/writing-stories/parameters)
*/
parameters?: Parameters;
@@ -204,7 +204,7 @@ export interface Addon_BaseAnnotations<
* Wrapper components or Storybook decorators that wrap a story.
*
* Decorators defined in Meta will be applied to every story variation.
- * @see [Decorators](https://storybook.js.org/docs/addons/introduction/#1-decorators)
+ * @see [Decorators](https://storybook.js.org/docs/addons/#1-decorators)
*/
decorators?: Addon_BaseDecorators;
@@ -265,7 +265,7 @@ export interface Addon_BaseMeta {
*
* Storybook will prioritize the id over the title for ID generation, if provided, and will prioritize the story.storyName over the export key for display.
*
- * @see [Sidebar and URLs](https://storybook.js.org/docs/react/configure/sidebar-and-urls#permalinking-to-stories)
+ * @see [Sidebar and URLs](https://storybook.js.org/docs/configure/sidebar-and-urls#permalinking-to-stories)
*/
id?: string;
diff --git a/code/presets/html-webpack/README.md b/code/presets/html-webpack/README.md
index dd70fe593868..f579a3567d4e 100644
--- a/code/presets/html-webpack/README.md
+++ b/code/presets/html-webpack/README.md
@@ -1,6 +1,6 @@
# Storybook Webpack preset for HTML
-This package is a [preset](https://storybook.js.org/docs/html/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling HTML.
+This package is a [preset](https://storybook.js.org/docs/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling HTML.
It's an internal package that's not intended to be used directly by users.
-- More info on [Storybook for HTML](https://storybook.js.org/docs/html/get-started/introduction)
+- More info on [Storybook for HTML](https://storybook.js.org/docs/get-started)
diff --git a/code/presets/preact-webpack/README.md b/code/presets/preact-webpack/README.md
index 3afe613128d0..f54a9e7d24df 100644
--- a/code/presets/preact-webpack/README.md
+++ b/code/presets/preact-webpack/README.md
@@ -1,6 +1,6 @@
# Storybook Webpack preset for Preact
-This package is a [preset](https://storybook.js.org/docs/preact/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Preact.
+This package is a [preset](https://storybook.js.org/docs/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Preact.
It's an internal package that's not intended to be used directly by users.
-- More info on [Storybook for Preact](https://storybook.js.org/docs/preact/get-started/introduction)
+- More info on [Storybook for Preact](https://storybook.js.org/docs/get-started)
diff --git a/code/presets/react-webpack/README.md b/code/presets/react-webpack/README.md
index 43fa9210cdee..626dc99cff2f 100644
--- a/code/presets/react-webpack/README.md
+++ b/code/presets/react-webpack/README.md
@@ -1,6 +1,6 @@
# Storybook Webpack preset for React
-This package is a [preset](https://storybook.js.org/docs/react/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling React.
+This package is a [preset](https://storybook.js.org/docs/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling React.
It's an internal package that's not intended to be used directly by users.
-- More info on [Storybook for React](https://storybook.js.org/docs/react/get-started/introduction)
+- More info on [Storybook for React](https://storybook.js.org/docs/get-started)
diff --git a/code/presets/server-webpack/README.md b/code/presets/server-webpack/README.md
index 6ec71da73371..b07ccdee1801 100644
--- a/code/presets/server-webpack/README.md
+++ b/code/presets/server-webpack/README.md
@@ -1,6 +1,6 @@
# Storybook Webpack preset for Server
-This package is a [preset](https://storybook.js.org/docs/react/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling React.
+This package is a [preset](https://storybook.js.org/docs/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling React.
It's an internal package that's not intended to be used directly by users.
- More info on [Storybook for Server](https://github.com/storybookjs/storybook/tree/next/code/frameworks/server-webpack5)
diff --git a/code/presets/svelte-webpack/README.md b/code/presets/svelte-webpack/README.md
index 2cf2606a3b91..bfebebe793ca 100644
--- a/code/presets/svelte-webpack/README.md
+++ b/code/presets/svelte-webpack/README.md
@@ -1,6 +1,6 @@
# Storybook Webpack preset for Svelte
-This package is a [preset](https://storybook.js.org/docs/svelte/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Svelte.
+This package is a [preset](https://storybook.js.org/docs/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Svelte.
It's an internal package that's not intended to be used directly by users.
-- More info on [Storybook for Svelte](https://storybook.js.org/docs/svelte/get-started/introduction)
+- More info on [Storybook for Svelte](https://storybook.js.org/docs/get-started)
diff --git a/code/presets/vue-webpack/README.md b/code/presets/vue-webpack/README.md
index 17acb9801107..adf7c2b2ef0d 100644
--- a/code/presets/vue-webpack/README.md
+++ b/code/presets/vue-webpack/README.md
@@ -1,6 +1,6 @@
# Storybook Webpack preset for Vue
-This package is a [preset](https://storybook.js.org/docs/vue/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Vue.
+This package is a [preset](https://storybook.js.org/docs/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Vue.
It's an internal package that's not intended to be used directly by users.
-- More info on [Storybook for Vue](https://storybook.js.org/docs/vue/get-started/introduction)
+- More info on [Storybook for Vue](https://storybook.js.org/docs/get-started)
diff --git a/code/presets/vue3-webpack/README.md b/code/presets/vue3-webpack/README.md
index aee6a93bb9fb..ea0165233779 100644
--- a/code/presets/vue3-webpack/README.md
+++ b/code/presets/vue3-webpack/README.md
@@ -1,6 +1,6 @@
# Storybook Webpack preset for Vue3
-This package is a [preset](https://storybook.js.org/docs/vue/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Vue3.
+This package is a [preset](https://storybook.js.org/docs/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Vue3.
It's an internal package that's not intended to be used directly by users.
-- More info on [Storybook for Vue3](https://storybook.js.org/docs/vue/get-started/introduction)
+- More info on [Storybook for Vue3](https://storybook.js.org/docs/get-started)
diff --git a/code/presets/web-components-webpack/README.md b/code/presets/web-components-webpack/README.md
index d2da44b36356..d9f3c30f84bc 100644
--- a/code/presets/web-components-webpack/README.md
+++ b/code/presets/web-components-webpack/README.md
@@ -1,6 +1,6 @@
# Storybook Webpack preset for Web components
-This package is a [preset](https://storybook.js.org/docs/web-components/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Web components.
+This package is a [preset](https://storybook.js.org/docs/addons/writing-presets#presets-api) that configures Storybook's webpack settings for handling Web components.
It's an internal package that's not intended to be used directly by users.
-- More info on [Storybook for Web components](https://storybook.js.org/docs/web-components/get-started/introduction)
+- More info on [Storybook for Web components](https://storybook.js.org/docs/get-started)
diff --git a/code/renderers/html/template/cli/js/Button.stories.js b/code/renderers/html/template/cli/js/Button.stories.js
index 62c96643b7ed..81d0ba1fb150 100644
--- a/code/renderers/html/template/cli/js/Button.stories.js
+++ b/code/renderers/html/template/cli/js/Button.stories.js
@@ -1,6 +1,6 @@
import { createButton } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/html/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
export default {
title: 'Example/Button',
tags: ['autodocs'],
@@ -21,7 +21,7 @@ export default {
},
};
-// More on writing stories with args: https://storybook.js.org/docs/html/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary = {
args: {
primary: true,
diff --git a/code/renderers/html/template/cli/js/Header.stories.js b/code/renderers/html/template/cli/js/Header.stories.js
index e593d18c3c90..44fa3cbbff46 100644
--- a/code/renderers/html/template/cli/js/Header.stories.js
+++ b/code/renderers/html/template/cli/js/Header.stories.js
@@ -2,14 +2,14 @@ import { createHeader } from './Header';
export default {
title: 'Example/Header',
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/html/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
render: (args) => createHeader(args),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/html/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
- // More on argTypes: https://storybook.js.org/docs/html/api/argtypes
+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
onLogin: { action: 'onLogin' },
onLogout: { action: 'onLogout' },
diff --git a/code/renderers/html/template/cli/js/Page.stories.js b/code/renderers/html/template/cli/js/Page.stories.js
index fcab88181bee..38e8331ec791 100644
--- a/code/renderers/html/template/cli/js/Page.stories.js
+++ b/code/renderers/html/template/cli/js/Page.stories.js
@@ -5,14 +5,14 @@ export default {
title: 'Example/Page',
render: () => createPage(),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/html/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
export const LoggedOut = {};
-// More on interaction testing: https://storybook.js.org/docs/html/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/html/template/cli/ts-3-8/Button.stories.ts b/code/renderers/html/template/cli/ts-3-8/Button.stories.ts
index cd13a8c0c50c..f91d91ae731e 100644
--- a/code/renderers/html/template/cli/ts-3-8/Button.stories.ts
+++ b/code/renderers/html/template/cli/ts-3-8/Button.stories.ts
@@ -2,7 +2,7 @@ import type { StoryObj, Meta } from '@storybook/html';
import type { ButtonProps } from './Button';
import { createButton } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/html/writing-stories/introduction#default-export
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
const meta: Meta = {
title: 'Example/Button',
tags: ['autodocs'],
@@ -26,7 +26,7 @@ const meta: Meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/html/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/renderers/html/template/cli/ts-3-8/Header.stories.ts b/code/renderers/html/template/cli/ts-3-8/Header.stories.ts
index d5391bb4a2a9..0bc5d9ce3aba 100644
--- a/code/renderers/html/template/cli/ts-3-8/Header.stories.ts
+++ b/code/renderers/html/template/cli/ts-3-8/Header.stories.ts
@@ -4,14 +4,14 @@ import { createHeader } from './Header';
const meta: Meta = {
title: 'Example/Header',
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/html/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
render: (args) => createHeader(args),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/html/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
- // More on argTypes: https://storybook.js.org/docs/html/api/argtypes
+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
onLogin: { action: 'onLogin' },
onLogout: { action: 'onLogout' },
diff --git a/code/renderers/html/template/cli/ts-3-8/Page.stories.ts b/code/renderers/html/template/cli/ts-3-8/Page.stories.ts
index 0c2e79e8e907..ae132d98862d 100644
--- a/code/renderers/html/template/cli/ts-3-8/Page.stories.ts
+++ b/code/renderers/html/template/cli/ts-3-8/Page.stories.ts
@@ -6,7 +6,7 @@ const meta: Meta = {
title: 'Example/Page',
render: () => createPage(),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/html/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
@@ -15,7 +15,7 @@ export default meta;
export const LoggedOut: StoryObj = {};
-// More on interaction testing: https://storybook.js.org/docs/html/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: StoryObj = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/html/template/cli/ts-4-9/Button.stories.ts b/code/renderers/html/template/cli/ts-4-9/Button.stories.ts
index d9bb7c93b473..2a86ecbec3b0 100644
--- a/code/renderers/html/template/cli/ts-4-9/Button.stories.ts
+++ b/code/renderers/html/template/cli/ts-4-9/Button.stories.ts
@@ -2,7 +2,7 @@ import type { StoryObj, Meta } from '@storybook/html';
import type { ButtonProps } from './Button';
import { createButton } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/html/writing-stories/introduction#default-export
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
const meta = {
title: 'Example/Button',
tags: ['autodocs'],
@@ -26,7 +26,7 @@ const meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/html/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/renderers/html/template/cli/ts-4-9/Header.stories.ts b/code/renderers/html/template/cli/ts-4-9/Header.stories.ts
index 930fc0ea2e7c..7570a625a869 100644
--- a/code/renderers/html/template/cli/ts-4-9/Header.stories.ts
+++ b/code/renderers/html/template/cli/ts-4-9/Header.stories.ts
@@ -4,14 +4,14 @@ import { createHeader } from './Header';
const meta = {
title: 'Example/Header',
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/html/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
render: (args) => createHeader(args),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/html/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
- // More on argTypes: https://storybook.js.org/docs/html/api/argtypes
+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
onLogin: { action: 'onLogin' },
onLogout: { action: 'onLogout' },
diff --git a/code/renderers/html/template/cli/ts-4-9/Page.stories.ts b/code/renderers/html/template/cli/ts-4-9/Page.stories.ts
index c64a88fbb84f..4108dbc0d9c5 100644
--- a/code/renderers/html/template/cli/ts-4-9/Page.stories.ts
+++ b/code/renderers/html/template/cli/ts-4-9/Page.stories.ts
@@ -6,7 +6,7 @@ const meta = {
title: 'Example/Page',
render: () => createPage(),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/html/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
} satisfies Meta;
@@ -15,7 +15,7 @@ export default meta;
export const LoggedOut: StoryObj = {};
-// More on interaction testing: https://storybook.js.org/docs/html/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: StoryObj = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/preact/template/cli/Button.stories.jsx b/code/renderers/preact/template/cli/Button.stories.jsx
index f1e083a02030..53ce0d71dd44 100644
--- a/code/renderers/preact/template/cli/Button.stories.jsx
+++ b/code/renderers/preact/template/cli/Button.stories.jsx
@@ -1,6 +1,6 @@
import { Button } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/preact/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
export default {
title: 'Example/Button',
component: Button,
@@ -11,7 +11,7 @@ export default {
},
};
-// More on writing stories with args: https://storybook.js.org/docs/preact/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary = {
args: {
primary: true,
diff --git a/code/renderers/preact/template/cli/Header.stories.jsx b/code/renderers/preact/template/cli/Header.stories.jsx
index 0fb4c57ada40..58b353a57db2 100644
--- a/code/renderers/preact/template/cli/Header.stories.jsx
+++ b/code/renderers/preact/template/cli/Header.stories.jsx
@@ -3,10 +3,10 @@ import { Header } from './Header';
export default {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/preact/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/preact/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
argTypes: {
diff --git a/code/renderers/preact/template/cli/Page.stories.jsx b/code/renderers/preact/template/cli/Page.stories.jsx
index 46669ac1c89d..67e60e684395 100644
--- a/code/renderers/preact/template/cli/Page.stories.jsx
+++ b/code/renderers/preact/template/cli/Page.stories.jsx
@@ -6,14 +6,14 @@ export default {
title: 'Example/Page',
component: Page,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/preact/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
export const LoggedOut = {};
-// More on interaction testing: https://storybook.js.org/docs/preact/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/react/template/cli/js/Button.stories.js b/code/renderers/react/template/cli/js/Button.stories.js
index e085f9ed312f..3a3f67ec8fb4 100644
--- a/code/renderers/react/template/cli/js/Button.stories.js
+++ b/code/renderers/react/template/cli/js/Button.stories.js
@@ -1,22 +1,22 @@
import { Button } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
export default {
title: 'Example/Button',
component: Button,
parameters: {
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'centered',
},
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
- // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
backgroundColor: { control: 'color' },
},
};
-// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary = {
args: {
primary: true,
diff --git a/code/renderers/react/template/cli/js/Header.stories.js b/code/renderers/react/template/cli/js/Header.stories.js
index 917384a22b58..16920e1be754 100644
--- a/code/renderers/react/template/cli/js/Header.stories.js
+++ b/code/renderers/react/template/cli/js/Header.stories.js
@@ -3,10 +3,10 @@ import { Header } from './Header';
export default {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
diff --git a/code/renderers/react/template/cli/js/Page.stories.js b/code/renderers/react/template/cli/js/Page.stories.js
index 204189f6d21d..9be87c4ae2e0 100644
--- a/code/renderers/react/template/cli/js/Page.stories.js
+++ b/code/renderers/react/template/cli/js/Page.stories.js
@@ -6,14 +6,14 @@ export default {
title: 'Example/Page',
component: Page,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
export const LoggedOut = {};
-// More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/react/template/cli/ts-3-8/Button.stories.ts b/code/renderers/react/template/cli/ts-3-8/Button.stories.ts
index 7d049116d13f..b65080126a44 100644
--- a/code/renderers/react/template/cli/ts-3-8/Button.stories.ts
+++ b/code/renderers/react/template/cli/ts-3-8/Button.stories.ts
@@ -2,17 +2,17 @@ import type { Meta, StoryObj } from '@storybook/react';
import { Button } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
const meta: Meta = {
title: 'Example/Button',
component: Button,
parameters: {
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'centered',
},
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
- // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
backgroundColor: { control: 'color' },
},
@@ -21,7 +21,7 @@ const meta: Meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/renderers/react/template/cli/ts-3-8/Header.stories.ts b/code/renderers/react/template/cli/ts-3-8/Header.stories.ts
index d317636cab13..19e5e2c0f667 100644
--- a/code/renderers/react/template/cli/ts-3-8/Header.stories.ts
+++ b/code/renderers/react/template/cli/ts-3-8/Header.stories.ts
@@ -5,10 +5,10 @@ import { Header } from './Header';
const meta: Meta = {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on Story layout: https://storybook.js.org/docs/react/configure/story-layout
+ // More on Story layout: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
diff --git a/code/renderers/react/template/cli/ts-3-8/Page.stories.ts b/code/renderers/react/template/cli/ts-3-8/Page.stories.ts
index adbab5d615f2..a3e9d76d90ec 100644
--- a/code/renderers/react/template/cli/ts-3-8/Page.stories.ts
+++ b/code/renderers/react/template/cli/ts-3-8/Page.stories.ts
@@ -7,7 +7,7 @@ const meta: Meta = {
title: 'Example/Page',
component: Page,
parameters: {
- // More on Story layout: https://storybook.js.org/docs/react/configure/story-layout
+ // More on Story layout: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
@@ -17,7 +17,7 @@ type Story = StoryObj;
export const LoggedOut: Story = {};
-// More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/react/template/cli/ts-4-9/Button.stories.ts b/code/renderers/react/template/cli/ts-4-9/Button.stories.ts
index 7a68cbfec557..742c3aa7b029 100644
--- a/code/renderers/react/template/cli/ts-4-9/Button.stories.ts
+++ b/code/renderers/react/template/cli/ts-4-9/Button.stories.ts
@@ -2,17 +2,17 @@ import type { Meta, StoryObj } from '@storybook/react';
import { Button } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
const meta = {
title: 'Example/Button',
component: Button,
parameters: {
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'centered',
},
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
- // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
argTypes: {
backgroundColor: { control: 'color' },
},
@@ -21,7 +21,7 @@ const meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/renderers/react/template/cli/ts-4-9/Header.stories.ts b/code/renderers/react/template/cli/ts-4-9/Header.stories.ts
index 458391a3501e..61cf98aa0c4e 100644
--- a/code/renderers/react/template/cli/ts-4-9/Header.stories.ts
+++ b/code/renderers/react/template/cli/ts-4-9/Header.stories.ts
@@ -5,10 +5,10 @@ import { Header } from './Header';
const meta = {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
} satisfies Meta;
diff --git a/code/renderers/react/template/cli/ts-4-9/Page.stories.ts b/code/renderers/react/template/cli/ts-4-9/Page.stories.ts
index 622858e72e7f..f7a06817f85a 100644
--- a/code/renderers/react/template/cli/ts-4-9/Page.stories.ts
+++ b/code/renderers/react/template/cli/ts-4-9/Page.stories.ts
@@ -7,7 +7,7 @@ const meta = {
title: 'Example/Page',
component: Page,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
} satisfies Meta;
@@ -17,7 +17,7 @@ type Story = StoryObj;
export const LoggedOut: Story = {};
-// More on interaction testing: https://storybook.js.org/docs/react/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/svelte/template/cli/js/Button.stories.js b/code/renderers/svelte/template/cli/js/Button.stories.js
index cf6c2e371295..c5c88776d6b5 100644
--- a/code/renderers/svelte/template/cli/js/Button.stories.js
+++ b/code/renderers/svelte/template/cli/js/Button.stories.js
@@ -1,6 +1,6 @@
import Button from './Button.svelte';
-// More on how to set up stories at: https://storybook.js.org/docs/svelte/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
export default {
title: 'Example/Button',
component: Button,
@@ -14,7 +14,7 @@ export default {
},
};
-// More on writing stories with args: https://storybook.js.org/docs/svelte/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary = {
args: {
primary: true,
diff --git a/code/renderers/svelte/template/cli/js/Header.stories.js b/code/renderers/svelte/template/cli/js/Header.stories.js
index 6d6caeb1e7ab..e2856c0e035c 100644
--- a/code/renderers/svelte/template/cli/js/Header.stories.js
+++ b/code/renderers/svelte/template/cli/js/Header.stories.js
@@ -3,10 +3,10 @@ import Header from './Header.svelte';
export default {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/svelte/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/svelte/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
diff --git a/code/renderers/svelte/template/cli/js/Page.stories.js b/code/renderers/svelte/template/cli/js/Page.stories.js
index a4492ae66631..b46831695fb9 100644
--- a/code/renderers/svelte/template/cli/js/Page.stories.js
+++ b/code/renderers/svelte/template/cli/js/Page.stories.js
@@ -6,14 +6,14 @@ export default {
title: 'Example/Page',
component: Page,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/svelte/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
export const LoggedOut = {};
-// More on interaction testing: https://storybook.js.org/docs/svelte/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/svelte/template/cli/ts-3-8/Button.stories.ts b/code/renderers/svelte/template/cli/ts-3-8/Button.stories.ts
index 5e73d1be9006..55f3b1c8e50a 100644
--- a/code/renderers/svelte/template/cli/ts-3-8/Button.stories.ts
+++ b/code/renderers/svelte/template/cli/ts-3-8/Button.stories.ts
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/svelte';
import Button from './Button.svelte';
-// More on how to set up stories at: https://storybook.js.org/docs/svelte/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta: Meta = {
title: 'Example/Button',
component: Button,
@@ -19,7 +19,7 @@ const meta: Meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/svelte/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/renderers/svelte/template/cli/ts-3-8/Header.stories.ts b/code/renderers/svelte/template/cli/ts-3-8/Header.stories.ts
index 9ea90ce8495e..d5978315ebde 100644
--- a/code/renderers/svelte/template/cli/ts-3-8/Header.stories.ts
+++ b/code/renderers/svelte/template/cli/ts-3-8/Header.stories.ts
@@ -4,10 +4,10 @@ import Header from './Header.svelte';
const meta: Meta = {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/svelte/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
diff --git a/code/renderers/svelte/template/cli/ts-3-8/Page.stories.ts b/code/renderers/svelte/template/cli/ts-3-8/Page.stories.ts
index 82e49cd3be09..2283c6c74abe 100644
--- a/code/renderers/svelte/template/cli/ts-3-8/Page.stories.ts
+++ b/code/renderers/svelte/template/cli/ts-3-8/Page.stories.ts
@@ -7,7 +7,7 @@ const meta: Meta = {
title: 'Example/Page',
component: Page,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/svelte/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
@@ -17,7 +17,7 @@ type Story = StoryObj;
export const LoggedOut: Story = {};
-// More on interaction testing: https://storybook.js.org/docs/svelte/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/svelte/template/cli/ts-4-9/Button.stories.ts b/code/renderers/svelte/template/cli/ts-4-9/Button.stories.ts
index 93e3fc8c0aba..119cb87f61d5 100644
--- a/code/renderers/svelte/template/cli/ts-4-9/Button.stories.ts
+++ b/code/renderers/svelte/template/cli/ts-4-9/Button.stories.ts
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/svelte';
import Button from './Button.svelte';
-// More on how to set up stories at: https://storybook.js.org/docs/svelte/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta = {
title: 'Example/Button',
component: Button,
@@ -19,7 +19,7 @@ const meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/svelte/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/renderers/svelte/template/cli/ts-4-9/Header.stories.ts b/code/renderers/svelte/template/cli/ts-4-9/Header.stories.ts
index c77812ca13ee..a7ffe757d164 100644
--- a/code/renderers/svelte/template/cli/ts-4-9/Header.stories.ts
+++ b/code/renderers/svelte/template/cli/ts-4-9/Header.stories.ts
@@ -4,10 +4,10 @@ import Header from './Header.svelte';
const meta = {
title: 'Example/Header',
component: Header,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/svelte/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
} satisfies Meta;
diff --git a/code/renderers/svelte/template/cli/ts-4-9/Page.stories.ts b/code/renderers/svelte/template/cli/ts-4-9/Page.stories.ts
index d7e97628ea24..ace35ddb275d 100644
--- a/code/renderers/svelte/template/cli/ts-4-9/Page.stories.ts
+++ b/code/renderers/svelte/template/cli/ts-4-9/Page.stories.ts
@@ -7,7 +7,7 @@ const meta = {
title: 'Example/Page',
component: Page,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/svelte/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
} satisfies Meta;
@@ -17,7 +17,7 @@ type Story = StoryObj;
export const LoggedOut: Story = {};
-// More on interaction testing: https://storybook.js.org/docs/svelte/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/vue/template/cli/Button.stories.js b/code/renderers/vue/template/cli/Button.stories.js
index 8863978b1215..ac1fe487803b 100644
--- a/code/renderers/vue/template/cli/Button.stories.js
+++ b/code/renderers/vue/template/cli/Button.stories.js
@@ -1,6 +1,6 @@
import MyButton from './Button.vue';
-// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
export default {
title: 'Example/Button',
component: MyButton,
@@ -19,7 +19,7 @@ export default {
},
};
-// More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary = {
args: {
primary: true,
diff --git a/code/renderers/vue/template/cli/Header.stories.js b/code/renderers/vue/template/cli/Header.stories.js
index 428f0b087ab9..553cd469b48b 100644
--- a/code/renderers/vue/template/cli/Header.stories.js
+++ b/code/renderers/vue/template/cli/Header.stories.js
@@ -3,7 +3,7 @@ import MyHeader from './Header.vue';
export default {
title: 'Example/Header',
component: MyHeader,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
render: (args, { argTypes }) => ({
props: Object.keys(argTypes),
@@ -14,7 +14,7 @@ export default {
'',
}),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/vue/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
diff --git a/code/renderers/vue/template/cli/Page.stories.js b/code/renderers/vue/template/cli/Page.stories.js
index 5e9b6ffa7318..e0b3309c2512 100644
--- a/code/renderers/vue/template/cli/Page.stories.js
+++ b/code/renderers/vue/template/cli/Page.stories.js
@@ -9,13 +9,13 @@ export default {
template: '',
}),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/vue/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
export const LoggedOut = {};
-// More on interaction testing: https://storybook.js.org/docs/vue/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/vue3/template/cli/js/Button.stories.js b/code/renderers/vue3/template/cli/js/Button.stories.js
index 9f43ad58ce83..5dc3bbc92b12 100644
--- a/code/renderers/vue3/template/cli/js/Button.stories.js
+++ b/code/renderers/vue3/template/cli/js/Button.stories.js
@@ -1,6 +1,6 @@
import MyButton from './Button.vue';
-// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
export default {
title: 'Example/Button',
component: MyButton,
@@ -19,7 +19,7 @@ export default {
},
};
-// More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary = {
args: {
primary: true,
diff --git a/code/renderers/vue3/template/cli/js/Header.stories.js b/code/renderers/vue3/template/cli/js/Header.stories.js
index 61e6906ea988..380492e24b24 100644
--- a/code/renderers/vue3/template/cli/js/Header.stories.js
+++ b/code/renderers/vue3/template/cli/js/Header.stories.js
@@ -3,7 +3,7 @@ import MyHeader from './Header.vue';
export default {
title: 'Example/Header',
component: MyHeader,
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
render: (args) => ({
// Components used in your story `template` are defined in the `components` object
@@ -21,7 +21,7 @@ export default {
template: '',
}),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/vue/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
diff --git a/code/renderers/vue3/template/cli/js/Page.stories.js b/code/renderers/vue3/template/cli/js/Page.stories.js
index 3c4ce9312539..beee806852fe 100644
--- a/code/renderers/vue3/template/cli/js/Page.stories.js
+++ b/code/renderers/vue3/template/cli/js/Page.stories.js
@@ -5,14 +5,14 @@ export default {
title: 'Example/Page',
component: MyPage,
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/vue/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
};
export const LoggedOut = {};
-// More on interaction testing: https://storybook.js.org/docs/vue/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn = {
render: () => ({
components: {
diff --git a/code/renderers/vue3/template/cli/ts-3-8/Button.stories.ts b/code/renderers/vue3/template/cli/ts-3-8/Button.stories.ts
index f80cb01045db..c368a36d078d 100644
--- a/code/renderers/vue3/template/cli/ts-3-8/Button.stories.ts
+++ b/code/renderers/vue3/template/cli/ts-3-8/Button.stories.ts
@@ -2,11 +2,11 @@ import type { Meta, StoryObj } from '@storybook/vue3';
import Button from './Button.vue';
-// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta: Meta = {
title: 'Example/Button',
component: Button,
- // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
+ // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
argTypes: {
size: { control: 'select', options: ['small', 'medium', 'large'] },
@@ -20,7 +20,7 @@ export default meta;
type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/vue/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Primary: Story = {
diff --git a/code/renderers/vue3/template/cli/ts-3-8/Header.stories.ts b/code/renderers/vue3/template/cli/ts-3-8/Header.stories.ts
index 17f2ca4ff6e6..fd0ba06e9c5d 100644
--- a/code/renderers/vue3/template/cli/ts-3-8/Header.stories.ts
+++ b/code/renderers/vue3/template/cli/ts-3-8/Header.stories.ts
@@ -4,7 +4,7 @@ import MyHeader from './Header.vue';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/vue/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Example/Header',
@@ -17,10 +17,10 @@ const meta: Meta = {
template: '',
}),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
- // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
+ // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
};
diff --git a/code/renderers/vue3/template/cli/ts-3-8/Page.stories.ts b/code/renderers/vue3/template/cli/ts-3-8/Page.stories.ts
index c26e06d2d0de..c8997dd8dbe9 100644
--- a/code/renderers/vue3/template/cli/ts-3-8/Page.stories.ts
+++ b/code/renderers/vue3/template/cli/ts-3-8/Page.stories.ts
@@ -10,17 +10,17 @@ const meta: Meta = {
template: '',
}),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/vue/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
- // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
+ // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
};
export default meta;
type Story = StoryObj;
-// More on interaction testing: https://storybook.js.org/docs/vue/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: Story = {
play: async ({ canvasElement }: any) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/vue3/template/cli/ts-4-9/Button.stories.ts b/code/renderers/vue3/template/cli/ts-4-9/Button.stories.ts
index c414d4a7b0a6..39013172fbe6 100644
--- a/code/renderers/vue3/template/cli/ts-4-9/Button.stories.ts
+++ b/code/renderers/vue3/template/cli/ts-4-9/Button.stories.ts
@@ -2,11 +2,11 @@ import type { Meta, StoryObj } from '@storybook/vue3';
import Button from './Button.vue';
-// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta = {
title: 'Example/Button',
component: Button,
- // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
+ // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
argTypes: {
size: { control: 'select', options: ['small', 'medium', 'large'] },
@@ -20,7 +20,7 @@ export default meta;
type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/vue/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Primary: Story = {
diff --git a/code/renderers/vue3/template/cli/ts-4-9/Header.stories.ts b/code/renderers/vue3/template/cli/ts-4-9/Header.stories.ts
index 8626c1f529bf..eb8fc1fcee56 100644
--- a/code/renderers/vue3/template/cli/ts-4-9/Header.stories.ts
+++ b/code/renderers/vue3/template/cli/ts-4-9/Header.stories.ts
@@ -4,7 +4,7 @@ import MyHeader from './Header.vue';
const meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/vue/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Example/Header',
@@ -17,10 +17,10 @@ const meta = {
template: '',
}),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
- // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
+ // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
} satisfies Meta;
diff --git a/code/renderers/vue3/template/cli/ts-4-9/Page.stories.ts b/code/renderers/vue3/template/cli/ts-4-9/Page.stories.ts
index 2bf745b21f21..96b7b67285e7 100644
--- a/code/renderers/vue3/template/cli/ts-4-9/Page.stories.ts
+++ b/code/renderers/vue3/template/cli/ts-4-9/Page.stories.ts
@@ -10,17 +10,17 @@ const meta = {
template: '',
}),
parameters: {
- // More on how to position stories at: https://storybook.js.org/docs/vue/configure/story-layout
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'fullscreen',
},
- // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/autodocs
+ // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
} satisfies Meta;
export default meta;
type Story = StoryObj;
-// More on interaction testing: https://storybook.js.org/docs/vue/writing-tests/interaction-testing
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
export const LoggedIn: Story = {
play: async ({ canvasElement }: any) => {
const canvas = within(canvasElement);
diff --git a/code/renderers/web-components/template/cli/js/Button.stories.js b/code/renderers/web-components/template/cli/js/Button.stories.js
index 7ee384b7ce4c..d406b990ff7b 100644
--- a/code/renderers/web-components/template/cli/js/Button.stories.js
+++ b/code/renderers/web-components/template/cli/js/Button.stories.js
@@ -1,6 +1,6 @@
import { Button } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/web-components/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
export default {
title: 'Example/Button',
tags: ['autodocs'],
@@ -15,7 +15,7 @@ export default {
},
};
-// More on writing stories with args: https://storybook.js.org/docs/web-components/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary = {
args: {
primary: true,
diff --git a/code/renderers/web-components/template/cli/js/Page.stories.js b/code/renderers/web-components/template/cli/js/Page.stories.js
index 91cc0239c73e..584f8434fa13 100644
--- a/code/renderers/web-components/template/cli/js/Page.stories.js
+++ b/code/renderers/web-components/template/cli/js/Page.stories.js
@@ -8,7 +8,7 @@ export default {
export const LoggedIn = {
args: {
- // More on composing args: https://storybook.js.org/docs/web-components/writing-stories/args#args-composition
+ // More on composing args: https://storybook.js.org/docs/writing-stories/args#args-composition
...HeaderStories.LoggedIn.args,
},
};
diff --git a/code/renderers/web-components/template/cli/ts-3-8/Button.stories.ts b/code/renderers/web-components/template/cli/ts-3-8/Button.stories.ts
index 1308c5384b88..62d561636779 100644
--- a/code/renderers/web-components/template/cli/ts-3-8/Button.stories.ts
+++ b/code/renderers/web-components/template/cli/ts-3-8/Button.stories.ts
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import type { ButtonProps } from './Button';
import { Button } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/web-components/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta: Meta = {
title: 'Example/Button',
tags: ['autodocs'],
@@ -20,7 +20,7 @@ const meta: Meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/web-components/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/renderers/web-components/template/cli/ts-3-8/Header.stories.ts b/code/renderers/web-components/template/cli/ts-3-8/Header.stories.ts
index 441a70d4ed41..aab89ba6a4b3 100644
--- a/code/renderers/web-components/template/cli/ts-3-8/Header.stories.ts
+++ b/code/renderers/web-components/template/cli/ts-3-8/Header.stories.ts
@@ -4,7 +4,7 @@ import { Header } from './Header';
const meta: Meta = {
title: 'Example/Header',
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/web-components/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
render: (args: HeaderProps) => Header(args),
};
diff --git a/code/renderers/web-components/template/cli/ts-3-8/Page.stories.ts b/code/renderers/web-components/template/cli/ts-3-8/Page.stories.ts
index 43ecfdccf450..2efe2204703e 100644
--- a/code/renderers/web-components/template/cli/ts-3-8/Page.stories.ts
+++ b/code/renderers/web-components/template/cli/ts-3-8/Page.stories.ts
@@ -14,7 +14,7 @@ type Story = StoryObj;
export const LoggedIn: Story = {
args: {
- // More on composing args: https://storybook.js.org/docs/web-components/writing-stories/args#args-composition
+ // More on composing args: https://storybook.js.org/docs/writing-stories/args#args-composition
...HeaderStories.LoggedIn.args,
},
};
diff --git a/code/renderers/web-components/template/cli/ts-4-9/Button.stories.ts b/code/renderers/web-components/template/cli/ts-4-9/Button.stories.ts
index 985def53f1b2..03516d6c1abf 100644
--- a/code/renderers/web-components/template/cli/ts-4-9/Button.stories.ts
+++ b/code/renderers/web-components/template/cli/ts-4-9/Button.stories.ts
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import type { ButtonProps } from './Button';
import { Button } from './Button';
-// More on how to set up stories at: https://storybook.js.org/docs/web-components/writing-stories/introduction
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta = {
title: 'Example/Button',
tags: ['autodocs'],
@@ -20,7 +20,7 @@ const meta = {
export default meta;
type Story = StoryObj;
-// More on writing stories with args: https://storybook.js.org/docs/web-components/writing-stories/args
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary: Story = {
args: {
primary: true,
diff --git a/code/renderers/web-components/template/cli/ts-4-9/Header.stories.ts b/code/renderers/web-components/template/cli/ts-4-9/Header.stories.ts
index 066b097f56dc..628e199db1f4 100644
--- a/code/renderers/web-components/template/cli/ts-4-9/Header.stories.ts
+++ b/code/renderers/web-components/template/cli/ts-4-9/Header.stories.ts
@@ -4,7 +4,7 @@ import { Header } from './Header';
const meta = {
title: 'Example/Header',
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/web-components/writing-docs/autodocs
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
render: (args: HeaderProps) => Header(args),
} satisfies Meta;
diff --git a/code/renderers/web-components/template/cli/ts-4-9/Page.stories.ts b/code/renderers/web-components/template/cli/ts-4-9/Page.stories.ts
index aa29295eeb28..bf9fef3fce58 100644
--- a/code/renderers/web-components/template/cli/ts-4-9/Page.stories.ts
+++ b/code/renderers/web-components/template/cli/ts-4-9/Page.stories.ts
@@ -14,7 +14,7 @@ type Story = StoryObj;
export const LoggedIn: Story = {
args: {
- // More on composing args: https://storybook.js.org/docs/web-components/writing-stories/args#args-composition
+ // More on composing args: https://storybook.js.org/docs/writing-stories/args#args-composition
...HeaderStories.LoggedIn.args,
},
};
diff --git a/code/ui/blocks/src/blocks/Canvas.stories.tsx b/code/ui/blocks/src/blocks/Canvas.stories.tsx
index 4022cb110043..b412c9b8e826 100644
--- a/code/ui/blocks/src/blocks/Canvas.stories.tsx
+++ b/code/ui/blocks/src/blocks/Canvas.stories.tsx
@@ -90,7 +90,7 @@ export const PropAdditionalActions: Story = {
title: 'Go to documentation',
onClick: () => {
window.open(
- 'https://storybook.js.org/docs/react/essentials/controls#annotation',
+ 'https://storybook.js.org/docs/essentials/controls#annotation',
'_blank'
);
},
diff --git a/code/ui/blocks/src/components/ArgsTable/ArgControl.tsx b/code/ui/blocks/src/components/ArgsTable/ArgControl.tsx
index be9b7e1c8a46..65df9372cc77 100644
--- a/code/ui/blocks/src/components/ArgsTable/ArgControl.tsx
+++ b/code/ui/blocks/src/components/ArgsTable/ArgControl.tsx
@@ -68,7 +68,7 @@ export const ArgControl: FC = ({ row, arg, updateArgs, isHovere
if (!control || control.disable)
return isHovered ? (
diff --git a/code/ui/blocks/src/components/ArgsTable/Empty.tsx b/code/ui/blocks/src/components/ArgsTable/Empty.tsx
index 7fa211bffc0e..897f2cff1750 100644
--- a/code/ui/blocks/src/components/ArgsTable/Empty.tsx
+++ b/code/ui/blocks/src/components/ArgsTable/Empty.tsx
@@ -91,7 +91,7 @@ export const Empty: FC = ({ inAddonPanel }) => {
@@ -101,7 +101,7 @@ export const Empty: FC = ({ inAddonPanel }) => {
)}
{!inAddonPanel && (
diff --git a/code/ui/blocks/src/examples/CanvasParameters.stories.tsx b/code/ui/blocks/src/examples/CanvasParameters.stories.tsx
index f5dd9acf0baf..ed9cf0d2db5e 100644
--- a/code/ui/blocks/src/examples/CanvasParameters.stories.tsx
+++ b/code/ui/blocks/src/examples/CanvasParameters.stories.tsx
@@ -31,7 +31,7 @@ export const AdditionalActions: Story = {
title: 'Go to documentation',
onClick: () => {
window.open(
- 'https://storybook.js.org/docs/react/essentials/controls#annotation',
+ 'https://storybook.js.org/docs/essentials/controls#annotation',
'_blank'
);
},
diff --git a/code/ui/manager/README.md b/code/ui/manager/README.md
index c91e4b2cb06a..4c5cf2cc7325 100644
--- a/code/ui/manager/README.md
+++ b/code/ui/manager/README.md
@@ -76,7 +76,7 @@ class ReactProvider extends Provider {
handleAPI(api) {
api.setOptions({
// see available options in
- // https://storybook.js.org/docs/react/configure/features-and-behavior
+ // https://storybook.js.org/docs/configure/features-and-behavior
});
}
}
diff --git a/code/ui/manager/src/components/sidebar/RefIndicator.tsx b/code/ui/manager/src/components/sidebar/RefIndicator.tsx
index a46ba2c89642..a1d42979904c 100644
--- a/code/ui/manager/src/components/sidebar/RefIndicator.tsx
+++ b/code/ui/manager/src/components/sidebar/RefIndicator.tsx
@@ -282,7 +282,7 @@ const LoginRequiredMessage: FC = ({ loginUrl, id }) => {
};
const ReadDocsMessage: FC = () => (
-
+
Read Composition docs
@@ -313,7 +313,7 @@ const LoadingMessage: FC<{ url: string }> = ({ url }) => (
const PerformanceDegradedMessage: FC = () => (
diff --git a/docs/addons/addon-types.md b/docs/addons/addon-types.md
index 10be1afd1c9b..c189c090d815 100644
--- a/docs/addons/addon-types.md
+++ b/docs/addons/addon-types.md
@@ -52,7 +52,7 @@ The `icon` element used in the example loads the icons from the `@storybook/comp
### Tabs
-Tab addons allow you to create your own custom tabs in Storybook. For example, the official [@storybook/addon-docs](../writing-docs/introduction.md) uses this pattern.
+Tab addons allow you to create your own custom tabs in Storybook. For example, the official [@storybook/addon-docs](../writing-docs/index.md) uses this pattern.
![Storybook tab addon](./storybook-tab.png)
diff --git a/docs/addons/introduction.md b/docs/addons/index.md
similarity index 84%
rename from docs/addons/introduction.md
rename to docs/addons/index.md
index 1550bf8c7567..349090fb5f80 100644
--- a/docs/addons/introduction.md
+++ b/docs/addons/index.md
@@ -1,8 +1,9 @@
---
title: 'Introduction to addons'
+hideRendererSelector: true
---
-Addons extend Storybook with features and integrations that are not built into the core. Most Storybook features are implemented as addons. For instance: [documentation](../writing-docs/introduction.md), [accessibility testing](https://github.com/storybookjs/storybook/tree/master/addons/a11y), [interactive controls](../essentials/controls.md), among others.
+Addons extend Storybook with features and integrations that are not built into the core. Most Storybook features are implemented as addons. For instance: [documentation](../writing-docs/index.md), [accessibility testing](https://github.com/storybookjs/storybook/tree/master/addons/a11y), [interactive controls](../essentials/controls.md), among others.
The [addon API](./addons-api.md) makes it easy for you to configure and customize Storybook in new ways. There are countless addons made by the community that unlocks time-saving workflows.
Browse our [addon catalog](https://storybook.js.org/addons) to install an existing addon or as inspiration for your own addon.
@@ -30,7 +31,7 @@ Storybook addons allow you to extend what's already possible with Storybook, eve
### UI-based addons
-[UI-based addons](./addon-types.md#ui-based-addons) focus on customizing Storybook's user interface to extend your development workflow. Examples of UI-based addons include: [Controls](../essentials/controls.md), [Docs](../writing-docs/introduction.md) and [Accessibility](https://github.com/storybookjs/storybook/tree/master/addons/a11y).
+[UI-based addons](./addon-types.md#ui-based-addons) focus on customizing Storybook's user interface to extend your development workflow. Examples of UI-based addons include: [Controls](../essentials/controls.md), [Docs](../writing-docs/index.md) and [Accessibility](https://github.com/storybookjs/storybook/tree/master/addons/a11y).
[Learn how to write an addon Β»](./writing-addons.md)
diff --git a/docs/addons/install-addons.md b/docs/addons/install-addons.md
index 0990f3022ce2..b576457a48a9 100644
--- a/docs/addons/install-addons.md
+++ b/docs/addons/install-addons.md
@@ -1,5 +1,6 @@
---
title: 'Install addons'
+hideRendererSelector: true
---
Storybook has [hundreds of reusable addons](https://storybook.js.org/addons) that are packaged as NPM modules. Let's walk through how to extend Storybook by installing and registering addons.
@@ -22,7 +23,7 @@ For example, to include accessibility testing in Storybook, run the following co
-Next, update [`.storybook/main.js|ts`](../configure/overview.md#configure-story-rendering) to the following:
+Next, update [`.storybook/main.js|ts`](../configure/index.md#configure-story-rendering) to the following:
@@ -64,11 +65,11 @@ For example, to use SCSS styling, run the following command to install the addon
-Use the Webpack 5 snippet only if your framework already includes support for this version. Otherwise, use the Webpack 4 snippet.
+Use the Webpack 5 snippet only if your framework already includes support for this version. Otherwise, use the Webpack 4 snippet.
-Next, update [`.storybook/main.js|ts`](../configure/overview.md#configure-story-rendering) to the following:
+Next, update [`.storybook/main.js|ts`](../configure/index.md#configure-story-rendering) to the following:
diff --git a/docs/addons/writing-presets.md b/docs/addons/writing-presets.md
index 57d243ac74b3..658efea74cf9 100644
--- a/docs/addons/writing-presets.md
+++ b/docs/addons/writing-presets.md
@@ -10,7 +10,7 @@ Preset addons allow developers to compose various configuration options and plug
### Local presets
-This type of preset allows you to encapsulate and organize configurations specific to the addon, including [builder](../builders/overview.md) support, [Babel](https://babeljs.io/), or third-party integrations. For example:
+This type of preset allows you to encapsulate and organize configurations specific to the addon, including [builder](../builders/index.md) support, [Babel](https://babeljs.io/), or third-party integrations. For example:
diff --git a/docs/api/arg-types.md b/docs/api/arg-types.md
index 5cf1a9006355..5c33273716ad 100644
--- a/docs/api/arg-types.md
+++ b/docs/api/arg-types.md
@@ -12,7 +12,7 @@ The most concrete realization of argTypes is the [`ArgTypes` doc block](./doc-bl
## Automatic argType inference
-If you are using the Storybook [docs](../writing-docs/introduction.md) addon (installed by default as part of [essentials](../essentials/introduction.md)), then Storybook will infer a set of argTypes for each story based on the `component` specified in the [default export](../writing-stories/introduction#default-export) of the CSF file.
+If you are using the Storybook [docs](../writing-docs/index.md) addon (installed by default as part of [essentials](../essentials/index.md)), then Storybook will infer a set of argTypes for each story based on the `component` specified in the [default export](../writing-stories#default-export) of the CSF file.
To do so, Storybook uses various static analysis tools depending on your framework.
@@ -30,7 +30,7 @@ The data structure of `argTypes` is designed to match the output of the these to
For most Storybook projects, argTypes are [automatically inferred](#automatic-argtype-inference) from your components. Any argTypes specified manually will override the inferred values.
-ArgTypes are most often specified at the meta (component) level, in the [default export](../writing-stories/introduction#default-export) of the CSF file:
+ArgTypes are most often specified at the meta (component) level, in the [default export](../writing-stories#default-export) of the CSF file:
@@ -59,7 +59,7 @@ They can apply to all stories when specified at the project (global) level, in t
-Or they can apply only to a [specific story](../writing-stories/introduction#defining-stories):
+Or they can apply only to a [specific story](../writing-stories#defining-stories):
diff --git a/docs/api/cli-options.md b/docs/api/cli-options.md
index a89d55a94d14..056339edf2da 100644
--- a/docs/api/cli-options.md
+++ b/docs/api/cli-options.md
@@ -1,5 +1,6 @@
---
title: 'CLI options'
+hideRendererSelector: true
---
The Storybook command line interface (CLI) is the main tool you use to build and develop Storybook.
diff --git a/docs/api/csf.md b/docs/api/csf.md
index 60c9ba5e4355..6e5917db809b 100644
--- a/docs/api/csf.md
+++ b/docs/api/csf.md
@@ -4,7 +4,7 @@ title: 'Component Story Format (CSF)'
-Component Story Format (CSF) is the recommended way to [write stories](../writing-stories/introduction.md). It's an [open standard](https://github.com/ComponentDriven/csf) based on ES6 modules that is portable beyond Storybook.
+Component Story Format (CSF) is the recommended way to [write stories](../writing-stories/index.md). It's an [open standard](https://github.com/ComponentDriven/csf) based on ES6 modules that is portable beyond Storybook.
@@ -36,7 +36,7 @@ The `component` field is required and used by addons for automatic prop table ge
-For more examples, see [writing stories](../writing-stories/introduction.md).
+For more examples, see [writing stories](../writing-stories/index.md).
## Named story exports
@@ -99,7 +99,7 @@ Storybook's `name` configuration element is helpful in specific circumstances. C
Starting in SB 6.0, stories accept named inputs called Args. Args are dynamic data that are provided (and possibly updated by) Storybook and its addons.
-Consider Storybookβs ["Button" example](../writing-stories/introduction.md#defining-stories) of a text button that logs its click events:
+Consider Storybookβs ["Button" example](../writing-stories/index.md#defining-stories) of a text button that logs its click events:
@@ -173,7 +173,7 @@ Or even more simply:
Not only are these versions shorter and more accessible to write than their no-args counterparts, but they are also more portable since the code doesn't depend on the actions addon specifically.
-For more information on setting up [Docs](../writing-docs/introduction.md) and [Actions](../essentials/actions.md), see their respective documentation.
+For more information on setting up [Docs](../writing-docs/index.md) and [Actions](../essentials/actions.md), see their respective documentation.
## Play function
@@ -468,4 +468,4 @@ Finally, CSF 3 can automatically generate titles.
-You can still specify a title like in CSF 2, but if you don't specify one, it can be inferred from the story's path on disk. For more information, see the section on [configuring story loading](../configure/overview#configure-story-loading).
+You can still specify a title like in CSF 2, but if you don't specify one, it can be inferred from the story's path on disk. For more information, see the section on [configuring story loading](../configure/#configure-story-loading).
diff --git a/docs/api/doc-block-controls.md b/docs/api/doc-block-controls.md
index 7079a6a43831..d199c1f3ec99 100644
--- a/docs/api/doc-block-controls.md
+++ b/docs/api/doc-block-controls.md
@@ -31,7 +31,7 @@ import * as ButtonStories from './Button.stories'
-The Controls doc block will only have functioning UI controls if you have also installed and registered [`@storybook/addon-controls`](../essentials/controls.md) (included in [`@storybook/addon-essentials`](../essentials/introduction.md)).
+The Controls doc block will only have functioning UI controls if you have also installed and registered [`@storybook/addon-controls`](../essentials/controls.md) (included in [`@storybook/addon-essentials`](../essentials/index.md)).
diff --git a/docs/api/index.md b/docs/api/index.md
new file mode 100644
index 000000000000..d32ed6ef01ab
--- /dev/null
+++ b/docs/api/index.md
@@ -0,0 +1,105 @@
+---
+title: 'API references'
+hideRendererSelector: true
+---
+
+
+
+An overview of all available API references for Storybook.
+
+## Configuration
+
+
+ Storybook's primary configuration file, which specifies your Storybook project's behavior,
+ including the location of your stories, the addons you use, feature flags and other
+ project-specific settings.
+
+ ArgTypes specify the behavior of args. By specifying
+ the type of an arg, you constrain the values that it can accept and provide information
+ about args that are not explicitly set.
+
+ Storybook offers several doc blocks to help document your components and other aspects of
+ your project.
+
+
+
+
diff --git a/docs/api/main-config-preview-annotations.md b/docs/api/main-config-preview-annotations.md
index 8e69ae265645..d5a4f91298d9 100644
--- a/docs/api/main-config-preview-annotations.md
+++ b/docs/api/main-config-preview-annotations.md
@@ -10,7 +10,7 @@ Add additional scripts to run in the story preview.
-Mostly used by [frameworks](../contribute/framework.md#previewjs-example). Storybook users and [addon authors](../addons/writing-presets.md) should add scripts to [`preview.js`](../configure/overview.md#configure-story-rendering) instead.
+Mostly used by [frameworks](../contribute/framework.md#previewjs-example). Storybook users and [addon authors](../addons/writing-presets.md) should add scripts to [`preview.js`](../configure/index.md#configure-story-rendering) instead.
diff --git a/docs/api/new-frameworks.md b/docs/api/new-frameworks.md
index 7321cb3b2b19..1e3f87fe5e88 100644
--- a/docs/api/new-frameworks.md
+++ b/docs/api/new-frameworks.md
@@ -150,7 +150,7 @@ The framework's render function is the entity responsible for converting the ren
### Package structure
-On the client side, the key file is [`src/client/preview.js`](../configure/overview.md#configure-story-rendering):
+On the client side, the key file is [`src/client/preview.js`](../configure/index.md#configure-story-rendering):
diff --git a/docs/builders/builder-api.md b/docs/builders/builder-api.md
index 056a96144a78..5d21370b5100 100644
--- a/docs/builders/builder-api.md
+++ b/docs/builders/builder-api.md
@@ -55,7 +55,7 @@ In production, the `build` API call is responsible for generating a static Story
## Implementation
-Under the hood, a builder is responsible for serving/building the preview `iframe`, which has its own set of requirements. To fully support Storybook, including the [Essential addons](../writing-stories/introduction.md) that ship with Storybook, it must consider the following.
+Under the hood, a builder is responsible for serving/building the preview `iframe`, which has its own set of requirements. To fully support Storybook, including the [Essential addons](../writing-stories/index.md) that ship with Storybook, it must consider the following.
### Import stories
@@ -77,7 +77,7 @@ By default, Storybook's configuration is handled in a dedicated file (`storybook
### Handle preview.js exports
-The [`preview.js`](../configure/overview.md#configure-story-rendering) configuration file allows users to control how the story renders in the UI. This is provided via the [decorators](../writing-stories/decorators.md) named export. When Storybook starts, it converts these named exports into internal API calls via virtual module entry, for example, `addDecorator()`. The builder must also provide a similar implementation. For example:
+The [`preview.js`](../configure/index.md#configure-story-rendering) configuration file allows users to control how the story renders in the UI. This is provided via the [decorators](../writing-stories/decorators.md) named export. When Storybook starts, it converts these named exports into internal API calls via virtual module entry, for example, `addDecorator()`. The builder must also provide a similar implementation. For example:
@@ -91,7 +91,7 @@ The [`preview.js`](../configure/overview.md#configure-story-rendering) configura
### MDX support
-[Storybook's Docs](../writing-docs/introduction.md) includes the ability to author stories/documentation in MDX using a Webpack loader. The builder must also know how to interpret MDX and invoke Storybook's special extensions. For example:
+[Storybook's Docs](../writing-docs/index.md) includes the ability to author stories/documentation in MDX using a Webpack loader. The builder must also know how to interpret MDX and invoke Storybook's special extensions. For example:
diff --git a/docs/builders/overview.md b/docs/builders/index.md
similarity index 97%
rename from docs/builders/overview.md
rename to docs/builders/index.md
index f0dbee77eeea..ed1309da02cb 100644
--- a/docs/builders/overview.md
+++ b/docs/builders/index.md
@@ -1,5 +1,6 @@
---
title: 'Builders'
+hideRendererSelector: true
---
Storybook, at its core, is powered by builders such as Webpack and Vite. These builders spin up a development environment, compile your codeβJavascript, CSS, and MDXβinto an executable bundle and update the browser in real-time.
diff --git a/docs/builders/webpack.md b/docs/builders/webpack.md
index 74964ff1c368..703459da2e4f 100644
--- a/docs/builders/webpack.md
+++ b/docs/builders/webpack.md
@@ -27,7 +27,7 @@ By default, Storybook provides zero-config support for Webpack and automatically
### Override the default configuration
-Storybook's Webpack configuration is based on [Webpack 5](https://webpack.js.org/), allowing it to be extended to fit your project's needs. If you need to add a loader or a plugin, you can provide the `webpackFinal` configuration element in your [`.storybook/main.js|ts`](../configure/overview.md#configure-your-storybook-project) file. The configuration element should export a function that receives the baseline configuration as the first argument and Storybook's options object as the second argument. For example:
+Storybook's Webpack configuration is based on [Webpack 5](https://webpack.js.org/), allowing it to be extended to fit your project's needs. If you need to add a loader or a plugin, you can provide the `webpackFinal` configuration element in your [`.storybook/main.js|ts`](../configure/index.md#configure-your-storybook-project) file. The configuration element should export a function that receives the baseline configuration as the first argument and Storybook's options object as the second argument. For example:
diff --git a/docs/configure/environment-variables.md b/docs/configure/environment-variables.md
index d4ba9252c58c..e2948c3027b6 100644
--- a/docs/configure/environment-variables.md
+++ b/docs/configure/environment-variables.md
@@ -111,7 +111,7 @@ Then they'll be hardcoded to the static version of your Storybook.
### Using Storybook configuration
-Additionally, you can extend your Storybook configuration file (i.e., [`.storybook/main.js|.ts`](../configure/overview.md#configure-story-rendering)) and provide a configuration field that you can use to define specific variables (e.g., API URLs). For example:
+Additionally, you can extend your Storybook configuration file (i.e., [`.storybook/main.js|.ts`](../configure/index.md#configure-story-rendering)) and provide a configuration field that you can use to define specific variables (e.g., API URLs). For example:
diff --git a/docs/configure/frameworks.md b/docs/configure/frameworks.md
index fc9010251423..5846c4e5218c 100644
--- a/docs/configure/frameworks.md
+++ b/docs/configure/frameworks.md
@@ -56,7 +56,7 @@ The latest release of [NextJS](https://nextjs.org/) introduced breaking changes
### My framework doesn't work with Storybook
-Out of the box, most frameworks work seamlessly with Storybook. However, some frameworks (e.g., [CRACO](https://craco.js.org/)) provide their own configuration that Storybook isn't prepared to handle without additional steps, either [via addon](../addons/writing-presets.md) or integration. To learn more, read our [addons guide](../addons/introduction.md).
+Out of the box, most frameworks work seamlessly with Storybook. However, some frameworks (e.g., [CRACO](https://craco.js.org/)) provide their own configuration that Storybook isn't prepared to handle without additional steps, either [via addon](../addons/writing-presets.md) or integration. To learn more, read our [addons guide](../addons/index.md).
### How do I build a Storybook framework?
diff --git a/docs/configure/overview.md b/docs/configure/index.md
similarity index 99%
rename from docs/configure/overview.md
rename to docs/configure/index.md
index 4e11a8f5c440..65015fb569ca 100644
--- a/docs/configure/overview.md
+++ b/docs/configure/index.md
@@ -1,5 +1,6 @@
---
title: 'Configure Storybook'
+hideRendererSelector: true
---
Storybook is configured via a folder called `.storybook`, which contains various configuration files.
diff --git a/docs/configure/sidebar-and-urls.md b/docs/configure/sidebar-and-urls.md
index ab5f3afe509e..4e03f93be782 100644
--- a/docs/configure/sidebar-and-urls.md
+++ b/docs/configure/sidebar-and-urls.md
@@ -145,7 +145,7 @@ If you need to preserve the naming scheme, you can add the `title` element to th
### Auto-title prefixes
-Additionally, if you customize your Storybook to load your stories based on a [configuration object](./overview.md#with-a-configuration-object), including a `titlePrefix`, Storybook automatically prefixes all titles to matching stories. For example, assuming you have the following configuration:
+Additionally, if you customize your Storybook to load your stories based on a [configuration object](./index.md#with-a-configuration-object), including a `titlePrefix`, Storybook automatically prefixes all titles to matching stories. For example, assuming you have the following configuration:
diff --git a/docs/configure/story-layout.md b/docs/configure/story-layout.md
index 5adad91aebea..07236f9cbab4 100644
--- a/docs/configure/story-layout.md
+++ b/docs/configure/story-layout.md
@@ -6,7 +6,7 @@ The `layout` [parameter](../writing-stories/parameters.md) allows you to configu
## Global layout
-You can add the parameter to your [`./storybook/preview.js`](./overview.md#configure-story-rendering), like so:
+You can add the parameter to your [`./storybook/preview.js`](./index.md#configure-story-rendering), like so:
diff --git a/docs/configure/story-rendering.md b/docs/configure/story-rendering.md
index ae98bac3d9f3..fff549e8ef4c 100644
--- a/docs/configure/story-rendering.md
+++ b/docs/configure/story-rendering.md
@@ -6,7 +6,7 @@ In Storybook, your stories render in a particular βpreviewβ iframe (Canvas t
## Adding to <head>
-If you need to add extra elements to the `head` of the preview iframe, for instance, to load static stylesheets, font files, or similar, you can create a file called [`.storybook/preview-head.html`](./overview.md#configure-story-rendering) and add tags like this:
+If you need to add extra elements to the `head` of the preview iframe, for instance, to load static stylesheets, font files, or similar, you can create a file called [`.storybook/preview-head.html`](./index.md#configure-story-rendering) and add tags like this:
diff --git a/docs/configure/storybook-addons.md b/docs/configure/storybook-addons.md
index 48315969243c..697e0884889a 100644
--- a/docs/configure/storybook-addons.md
+++ b/docs/configure/storybook-addons.md
@@ -4,7 +4,7 @@ title: 'Storybook Addons'
A key strength of Storybook is its extensibility. Use addons to extend and customize Storybook to fit your teamβs development workflow.
-Addons are integral to the way Storybook works. Many of Storybook's core features are implemented as addons! These addons are installed out of the box with [essentials](../essentials/introduction.md).
+Addons are integral to the way Storybook works. Many of Storybook's core features are implemented as addons! These addons are installed out of the box with [essentials](../essentials/index.md).
## Addon features
diff --git a/docs/configure/styling-and-css.md b/docs/configure/styling-and-css.md
index 2f847b80935d..f2e70a9b6729 100644
--- a/docs/configure/styling-and-css.md
+++ b/docs/configure/styling-and-css.md
@@ -10,7 +10,7 @@ If you're using Vite to build your Storybook, you're covered! Storybook will use
## Importing CSS files
-Storybook is pre-configured to recognize imports for CSS files. To add global CSS for all your stories, import it in [`.storybook/preview.js`](./overview.md#configure-story-rendering).
+Storybook is pre-configured to recognize imports for CSS files. To add global CSS for all your stories, import it in [`.storybook/preview.js`](./index.md#configure-story-rendering).
diff --git a/docs/configure/telemetry.md b/docs/configure/telemetry.md
index 1d1af24046c1..38d1235c01c3 100644
--- a/docs/configure/telemetry.md
+++ b/docs/configure/telemetry.md
@@ -1,5 +1,6 @@
---
title: 'Telemetry'
+hideRendererSelector: true
---
Storybook collects completely anonymous data to help us improve user experience. Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information.
@@ -34,8 +35,8 @@ Specifically, we track the following information in our telemetry events:
- Supported view layers (e.g., React, Vue, Angular, Svelte).
- Builder (e.g., Webpack5, Vite).
- Meta framework (e.g., [Next](https://nextjs.org/), [Gatsby](https://www.gatsbyjs.com/), [CRA](https://create-react-app.dev/)).
- - [Addons](https://storybook.js.org/integrations) (e.g., [Essentials](../essentials/introduction.md), [Accessibility](https://storybook.js.org/addons/@storybook/addon-a11y/)).
- - [Feature flags](./overview.md#feature-flags) (e.g., `buildStoriesJson`).
+ - [Addons](https://storybook.js.org/integrations) (e.g., [Essentials](../essentials/index.md), [Accessibility](https://storybook.js.org/addons/@storybook/addon-a11y/)).
+ - [Feature flags](./index.md#feature-flags) (e.g., `buildStoriesJson`).
- Package manager information (e.g., `npm`, `yarn`).
- Monorepo information (e.g., [NX](https://nx.dev/), [Turborepo](https://turborepo.org/)).
- In-app events (e.g., [Storybook guided tour](https://github.com/storybookjs/addon-onboarding)).
diff --git a/docs/configure/theming.md b/docs/configure/theming.md
index 73cc315f5fc6..5ac07a9b5a61 100644
--- a/docs/configure/theming.md
+++ b/docs/configure/theming.md
@@ -42,7 +42,7 @@ When setting a theme, set a complete theme object. The theme is replaced, not co
## Theming docs
-[Storybook Docs](../writing-docs/introduction.md) uses the same theme system as Storybookβs UI but is themed independently from the main UI.
+[Storybook Docs](../writing-docs/index.md) uses the same theme system as Storybookβs UI but is themed independently from the main UI.
Supposing you have a Storybook theme defined for the main UI in [`.storybook/manager.js`](./features-and-behavior.md):
@@ -56,7 +56,7 @@ Supposing you have a Storybook theme defined for the main UI in [`.storybook/man
-Here's how you'd specify the same theme for docs in [`.storybook/preview.js`](./overview.md#configure-story-rendering):
+Here's how you'd specify the same theme for docs in [`.storybook/preview.js`](./index.md#configure-story-rendering):
@@ -164,7 +164,7 @@ The same way as you can adjust your [previewβs head tag](../configure/story-re
If you're using MDX for docs, there's one more level of "themability". MDX allows you to completely override the rendered components from Markdown using a `components` parameter. It's an advanced usage that we don't officially support in Storybook, but it's a powerful construct if you need it.
-Here's how you might insert a custom code renderer for `code` blocks on the page, in [`.storybook/preview.js`](./overview.md#configure-story-rendering):
+Here's how you might insert a custom code renderer for `code` blocks on the page, in [`.storybook/preview.js`](./index.md#configure-story-rendering):
diff --git a/docs/configure/webpack.md b/docs/configure/webpack.md
index 61073d7b4374..41537c576f70 100644
--- a/docs/configure/webpack.md
+++ b/docs/configure/webpack.md
@@ -4,7 +4,7 @@ title: 'Webpack'
Storybook displays your components in a custom web application built using [Webpack](https://webpack.js.org/). Webpack is a complex tool, but our default configuration is intended to cover most use cases. [Addons](https://storybook.js.org/addons/) are also available that extend the configuration for other everyday use cases.
-You can customize Storybook's webpack setup by providing a `webpackFinal` field in [`.storybook/main.js`](./overview.md#configure-your-storybook-project) file.
+You can customize Storybook's webpack setup by providing a `webpackFinal` field in [`.storybook/main.js`](./index.md#configure-your-storybook-project) file.
The value should be an async function that receives a webpack config and eventually returns a webpack config.
@@ -65,7 +65,7 @@ Starting with Storybook 6.4, [bundle splitting](https://v4.webpack.js.org/guides
-When you start your Storybook, you'll see an improvement in loading times. Read more about it in the [announcement post](https://storybook.js.org/blog/storybook-on-demand-architecture/) and the [configuration documentation](./overview.md#on-demand-story-loading).
+When you start your Storybook, you'll see an improvement in loading times. Read more about it in the [announcement post](https://storybook.js.org/blog/storybook-on-demand-architecture/) and the [configuration documentation](./index.md#on-demand-story-loading).
### Webpack 5
@@ -117,7 +117,7 @@ This feature will mean build output is cached between runs of Storybook, speedin
### Extending Storybookβs webpack config
-To extend the above configuration, use the `webpackFinal` field of [`.storybook/main.js`](./overview.md#configure-story-rendering).
+To extend the above configuration, use the `webpackFinal` field of [`.storybook/main.js`](./index.md#configure-story-rendering).
The value should export a `function`, which will receive the default config as its first argument. The second argument is an options object from Storybook, and this will have information about where config came from, whether we're in production or development mode, etc.
@@ -159,7 +159,7 @@ If you're using a non-standard Storybook config directory, you should put `main.
### Using your existing config
-Suppose you have an existing webpack config for your project and want to reuse this app's configuration. In that case, you can import your main webpack config into Storybook's [`.storybook/main.js`](./overview.md#configure-story-rendering) and merge both:
+Suppose you have an existing webpack config for your project and want to reuse this app's configuration. In that case, you can import your main webpack config into Storybook's [`.storybook/main.js`](./index.md#configure-story-rendering) and merge both:
The following code snippet shows how you can replace the loaders from Storybook with the ones from your app's `webpack.config.js`:
diff --git a/docs/contribute/RFC.md b/docs/contribute/RFC.md
index e920e6b6bead..903e240eba65 100644
--- a/docs/contribute/RFC.md
+++ b/docs/contribute/RFC.md
@@ -1,5 +1,6 @@
---
title: 'RFC process'
+hideRendererSelector: true
---
The RFC (Request for Comment) process is intended to provide a consistent and controlled path for new features to enter the project. It helps ensure that new features are well-designed, well-implemented, and well-tested, and they do not conflict with the project's overall direction and scope.
diff --git a/docs/contribute/code.md b/docs/contribute/code.md
index 7ce0068157bb..a0e2b07e73e7 100644
--- a/docs/contribute/code.md
+++ b/docs/contribute/code.md
@@ -1,5 +1,6 @@
---
title: 'Code contributions'
+hideRendererSelector: true
---
Contribute a new feature or bug fix to [Storybook's monorepo](https://github.com/storybookjs/storybook). This page outlines how to get your environment set up to contribute code.
@@ -106,7 +107,7 @@ When you're done coding, add documentation and tests as appropriate. That simpli
Adding a story or set of generic stories to our suite helps you test your work.
-Assuming you're working on one of the [Essential addons](../essentials/introduction.md), there's a chance that a complete set of stories already exists. Check the addon's `template/stories` directory that documents how it's supposed to work and add your stories there.
+Assuming you're working on one of the [Essential addons](../essentials/index.md), there's a chance that a complete set of stories already exists. Check the addon's `template/stories` directory that documents how it's supposed to work and add your stories there.
If you're modifying something related to a specific renderer (e.g., React, Vue, etc.), it will also have a similar `template/stories` directory in which you'll need to add your stories.
diff --git a/docs/contribute/documentation-updates.md b/docs/contribute/documentation-updates.md
index 76808e2c786b..a6d3a0ac8288 100644
--- a/docs/contribute/documentation-updates.md
+++ b/docs/contribute/documentation-updates.md
@@ -1,5 +1,6 @@
---
title: 'Documentation updates'
+hideRendererSelector: true
---
Fix a typo or clarify a section of the docs. This page outlines how to edit the documentation.
diff --git a/docs/contribute/framework.md b/docs/contribute/framework.md
index f3125080a4b9..9b70a4199d9f 100644
--- a/docs/contribute/framework.md
+++ b/docs/contribute/framework.md
@@ -1,8 +1,9 @@
---
title: 'Contributing a Storybook framework'
+hideRendererSelector: true
---
-A Storybook framework is a node package that enables out-of-the-box support for either a metaframework (Next.js, NuxtJS, SvelteKit) or a combination of [builder](../builders/overview) (Webpack, Vite) plus renderer (React, Angular, Vue, web components, etc).
+A Storybook framework is a node package that enables out-of-the-box support for either a metaframework (Next.js, NuxtJS, SvelteKit) or a combination of [builder](../builders/index.md) (Webpack, Vite) plus renderer (React, Angular, Vue, web components, etc).
For metaframeworks, the Storybook framework also takes care of additional configuration necessary to make Storybook behave similarly to apps generated by the metaframework. For example, `@storybook/nextjs` [recreates or mocks a number of features of Next.js apps](https://github.com/storybookjs/storybook/blob/next/code/frameworks/nextjs/README.md#supported-features) inside Storybook.
@@ -130,7 +131,7 @@ The [preset API](../addons/writing-presets) is where you will configure the Stor
#### `preview.js` ([example](https://github.com/storybookjs/storybook/blob/next/code/frameworks/nextjs/src/preview.tsx))
-The (optional) [preview API](../configure/overview#configure-story-rendering) is where you configure the rendering of stories, such as global decorators or initializing some runtime config needed for your framework to behave as expected. If your framework requires this file, note that you also need to [configure the `previewAnnotations` in `preset.js`](https://github.com/storybookjs/storybook/blob/next/code/frameworks/nextjs/src/preset.ts#L71-L74).
+The (optional) [preview API](../configure/#configure-story-rendering) is where you configure the rendering of stories, such as global decorators or initializing some runtime config needed for your framework to behave as expected. If your framework requires this file, note that you also need to [configure the `previewAnnotations` in `preset.js`](https://github.com/storybookjs/storybook/blob/next/code/frameworks/nextjs/src/preset.ts#L71-L74).
#### `types.ts` ([example](https://github.com/storybookjs/storybook/blob/next/code/frameworks/nextjs/src/types.ts))
diff --git a/docs/contribute/how-to-reproduce.md b/docs/contribute/how-to-reproduce.md
index 90036ca37e89..95d81b691903 100644
--- a/docs/contribute/how-to-reproduce.md
+++ b/docs/contribute/how-to-reproduce.md
@@ -54,7 +54,7 @@ Install and configure any Storybook [addons](https://storybook.js.org/addons/) t
## Add stories
-Any Storybook reproduction wouldn't be complete without [stories](../writing-stories/introduction.md). To help fix your issue faster, we encourage you to include the minimum amount of stories that will replicate your issue.
+Any Storybook reproduction wouldn't be complete without [stories](../writing-stories/index.md). To help fix your issue faster, we encourage you to include the minimum amount of stories that will replicate your issue.
## Host
diff --git a/docs/contribute/how-to-contribute.md b/docs/contribute/index.md
similarity index 94%
rename from docs/contribute/how-to-contribute.md
rename to docs/contribute/index.md
index 35faaa534d55..a49fbeb2fc1a 100644
--- a/docs/contribute/how-to-contribute.md
+++ b/docs/contribute/index.md
@@ -1,5 +1,6 @@
---
title: 'How to contribute'
+hideRendererSelector: true
---
Storybook is a community-oriented open source project that welcomes contributions. Some of our most popular features started with a developer wanting to solve a problem for themselves.
@@ -15,7 +16,7 @@ In the interest of fostering an open and welcoming environment, we as contributo
- [**Frameworks**](./framework.md) to get started with a new framework
- [**Documentation**](./documentation-updates.md) for documentation improvements, typos, and clarifications
- [**Examples**](./new-snippets.md) for new snippets and examples
-- [**Addons**](./../addons/introduction.md) for new addons
+- [**Addons**](./../addons/index.md) for new addons
## Not sure how to get started?
diff --git a/docs/essentials/actions.md b/docs/essentials/actions.md
index 70a7496f9ee3..31ae0f5d5c60 100644
--- a/docs/essentials/actions.md
+++ b/docs/essentials/actions.md
@@ -72,7 +72,7 @@ If you need more granular control over which `argTypes` are matched, you can adj
-If you're generating argTypes with another addon (like [docs](../writing-docs/introduction.md), which is the common behavior), ensure the actions addon **AFTER** the other addon. You can do this by listing it later in the addons registration code in [`.storybook/main.js`](../configure/overview.md#configure-story-rendering). This is default in [essentials](./introduction.md).
+If you're generating argTypes with another addon (like [docs](../writing-docs/index.md), which is the common behavior), ensure the actions addon **AFTER** the other addon. You can do this by listing it later in the addons registration code in [`.storybook/main.js`](../configure/index.md#configure-story-rendering). This is default in [essentials](./index.md).
diff --git a/docs/essentials/backgrounds.md b/docs/essentials/backgrounds.md
index f6b286ec350b..3c295a12b360 100644
--- a/docs/essentials/backgrounds.md
+++ b/docs/essentials/backgrounds.md
@@ -15,7 +15,7 @@ The backgrounds toolbar addon allows you to set the background color in which th
By default, the backgrounds toolbar includes a light and dark background.
-But you're not restricted to these backgrounds, you can configure your own set of colors with the `parameters.backgrounds` [parameter](../writing-stories/parameters.md) in your [`.storybook/preview.js`](../configure/overview.md#configure-story-rendering):
+But you're not restricted to these backgrounds, you can configure your own set of colors with the `parameters.backgrounds` [parameter](../writing-stories/parameters.md) in your [`.storybook/preview.js`](../configure/index.md#configure-story-rendering):
diff --git a/docs/essentials/controls.md b/docs/essentials/controls.md
index fff305286b8b..55cc80c64c94 100644
--- a/docs/essentials/controls.md
+++ b/docs/essentials/controls.md
@@ -264,7 +264,7 @@ Controls supports the following configuration [parameters](../writing-stories/pa
Since Controls is built on the same engine as Storybook Docs, it can also show property documentation alongside your controls using the expanded parameter (defaults to false). This means you embed a complete [`Controls`](../api/doc-block-controls.md) doc block in the controls panel. The description and default value rendering can be [customized](#fully-custom-args) in the same way as the doc block.
-To enable expanded mode globally, add the following to [`.storybook/preview.js`](../configure/overview.md#configure-story-rendering):
+To enable expanded mode globally, add the following to [`.storybook/preview.js`](../configure/index.md#configure-story-rendering):
diff --git a/docs/essentials/introduction.md b/docs/essentials/index.md
similarity index 94%
rename from docs/essentials/introduction.md
rename to docs/essentials/index.md
index 4e89178bad28..4cddae864fee 100644
--- a/docs/essentials/introduction.md
+++ b/docs/essentials/index.md
@@ -1,5 +1,6 @@
---
title: 'Essential addons'
+hideRendererSelector: true
---
A major strength of Storybook are [addons](https://storybook.js.org/addons) that extend Storybookβs UI and behavior. Storybook ships by default with a set of βessentialβ addons that add to the initial user experience. There are many third-party addons as well as βofficialβ addons developed by the Storybook core team.
@@ -7,7 +8,7 @@ A major strength of Storybook are [addons](https://storybook.js.org/addons) that
- [Actions](./actions.md)
- [Backgrounds](./backgrounds.md)
- [Controls](./controls.md)
-- [Docs](../writing-docs/introduction.md)
+- [Docs](../writing-docs/index.md)
- [Highlight](./highlight.md)
- [Measure & outline](./measure-and-outline.md)
- [Toolbars & globals](./toolbars-and-globals.md)
@@ -31,7 +32,7 @@ However, if you intend to install the Essentials addon manually into an existing
-Update your Storybook configuration (in [`.storybook/main.js|ts`](../configure/overview.md#configure-story-rendering)) to include the Essentials addon.
+Update your Storybook configuration (in [`.storybook/main.js|ts`](../configure/index.md#configure-story-rendering)) to include the Essentials addon.
@@ -48,7 +49,7 @@ Update your Storybook configuration (in [`.storybook/main.js|ts`](../configure/o
Essentials is "zero-configβ. It comes with a recommended configuration out of the box.
-If you need to reconfigure any of the [individual Essentials addons](https://storybook.js.org/addons/tag/essentials), install them manually by following the installation instructions, and depending on the method of choice, register them in your Storybook configuration file (i.e., [`.storybook/main.js|ts`](../configure/overview.md#configure-story-rendering)) and adjust the configuration to suit your needs. For example:
+If you need to reconfigure any of the [individual Essentials addons](https://storybook.js.org/addons/tag/essentials), install them manually by following the installation instructions, and depending on the method of choice, register them in your Storybook configuration file (i.e., [`.storybook/main.js|ts`](../configure/index.md#configure-story-rendering)) and adjust the configuration to suit your needs. For example:
@@ -102,7 +103,7 @@ When you start Storybook, your custom configuration will override the default.
### Disabling addons
-If you need to disable any of the Essential's addons, you can do it by changing your [`.storybook/main.js`](../configure/overview.md#configure-story-rendering) file.
+If you need to disable any of the Essential's addons, you can do it by changing your [`.storybook/main.js`](../configure/index.md#configure-story-rendering) file.
For example, if you wanted to disable the [backgrounds addon](./backgrounds.md), you would apply the following change to your Storybook configuration:
diff --git a/docs/essentials/interactions.md b/docs/essentials/interactions.md
index bbc1207e7cca..dc86f7b94f9a 100644
--- a/docs/essentials/interactions.md
+++ b/docs/essentials/interactions.md
@@ -32,7 +32,7 @@ Run the following command to install the interactions addon and related dependen
-Next, update [`.storybook/main.js|ts`](../configure/overview.md#configure-story-rendering) to the following:
+Next, update [`.storybook/main.js|ts`](../configure/index.md#configure-story-rendering) to the following:
@@ -47,7 +47,7 @@ Next, update [`.storybook/main.js|ts`](../configure/overview.md#configure-story-
-Make sure to list `@storybook/addon-interactions` **after** the [`@storybook/addon-essentials`](./introduction.md) addon (or the [`@storybook/addon-actions`](./actions.md) if you've installed it individually).
+Make sure to list `@storybook/addon-interactions` **after** the [`@storybook/addon-essentials`](./index.md) addon (or the [`@storybook/addon-actions`](./actions.md) if you've installed it individually).
diff --git a/docs/essentials/themes.md b/docs/essentials/themes.md
index cdb199452ef0..fbe2384b3b01 100644
--- a/docs/essentials/themes.md
+++ b/docs/essentials/themes.md
@@ -8,7 +8,7 @@ Storybook's [Themes](https://github.com/storybookjs/storybook/tree/next/code/add
## Theme decorators
-To make your themes accessible to your stories, `@storybook/addon-themes` exposes three [decorators](https://storybook.js.org/docs/react/writing-stories/decorators) for different methods of theming.
+To make your themes accessible to your stories, `@storybook/addon-themes` exposes three [decorators](https://storybook.js.org/docs/writing-stories/decorators) for different methods of theming.
### JSX providers
diff --git a/docs/essentials/toolbars-and-globals.md b/docs/essentials/toolbars-and-globals.md
index 6f7e2916daa0..ff169ff91aa8 100644
--- a/docs/essentials/toolbars-and-globals.md
+++ b/docs/essentials/toolbars-and-globals.md
@@ -16,7 +16,7 @@ When the globals change, the story re-renders, and the decorators rerun with the
## Global types and the toolbar annotation
-Storybook has a simple, declarative syntax for configuring toolbar menus. In your [`.storybook/preview.js|ts`](../configure/overview.md#configure-story-rendering), you can add your own toolbars by creating `globalTypes` with a `toolbar` annotation:
+Storybook has a simple, declarative syntax for configuring toolbar menus. In your [`.storybook/preview.js|ts`](../configure/index.md#configure-story-rendering), you can add your own toolbars by creating `globalTypes` with a `toolbar` annotation:
@@ -31,7 +31,7 @@ Storybook has a simple, declarative syntax for configuring toolbar menus. In you
-As globals are _global_ you can _only_ set `globalTypes` in [`.storybook/preview.js|ts`](../configure/overview.md#configure-story-rendering).
+As globals are _global_ you can _only_ set `globalTypes` in [`.storybook/preview.js|ts`](../configure/index.md#configure-story-rendering).
@@ -43,7 +43,7 @@ We have a `global` implemented. Let's wire it up! We can consume our new `theme`
-For example, suppose you are using [`styled-components`](https://styled-components.com/). You can add a theme provider decorator to your [`.storybook/preview.js|ts`](../configure/overview.md#configure-story-rendering) config:
+For example, suppose you are using [`styled-components`](https://styled-components.com/). You can add a theme provider decorator to your [`.storybook/preview.js|ts`](../configure/index.md#configure-story-rendering) config:
@@ -60,7 +60,7 @@ For example, suppose you are using [`styled-components`](https://styled-componen
-For example, suppose you are using [`Vuetify`](https://vuetifyjs.com/en/). You can add a theme provider decorator to your [`.storybook/preview.js|ts`](../configure/overview.md#configure-story-rendering) config:
+For example, suppose you are using [`Vuetify`](https://vuetifyjs.com/en/). You can add a theme provider decorator to your [`.storybook/preview.js|ts`](../configure/index.md#configure-story-rendering) config:
@@ -77,7 +77,7 @@ For example, suppose you are using [`Vuetify`](https://vuetifyjs.com/en/). You c
-For example, suppose you are using [`Angular Material`](https://material.angular.io/). You can add a theme provider decorator to your [`.storybook/preview.js|ts`](../configure/overview.md#configure-story-rendering) config:
+For example, suppose you are using [`Angular Material`](https://material.angular.io/). You can add a theme provider decorator to your [`.storybook/preview.js|ts`](../configure/index.md#configure-story-rendering) config:
@@ -93,7 +93,7 @@ For example, suppose you are using [`Angular Material`](https://material.angular
-Depending on your framework and theming library, you can extend your [`.storybook/preview.js|ts`](../configure/overview.md#configure-story-rendering) and provide a decorator to load the theme. For example:
+Depending on your framework and theming library, you can extend your [`.storybook/preview.js|ts`](../configure/index.md#configure-story-rendering) and provide a decorator to load the theme. For example:
@@ -114,7 +114,7 @@ So far, we've managed to create and consume a global inside Storybook.
Now let's take a look at a more complex example. Let's suppose we wanted to implement a new global called **locale** for internationalization, which shows a flag on the right side of the toolbar.
-In your [`.storybook/preview.js|ts`](../configure/overview.md#configure-story-rendering), add the following:
+In your [`.storybook/preview.js|ts`](../configure/index.md#configure-story-rendering), add the following:
diff --git a/docs/essentials/viewport.md b/docs/essentials/viewport.md
index d2742b73b81b..dd321d9f30ec 100644
--- a/docs/essentials/viewport.md
+++ b/docs/essentials/viewport.md
@@ -17,7 +17,7 @@ The Viewport toolbar item allows you to adjust the dimensions of the iframe your
Out of the box, the Viewport addon offers you a standard set of viewports that you can use.
-If you want to change the default set of viewports, you can set the global `parameters.viewport` [parameter](../writing-stories/parameters.md) in your [`.storybook/preview.js`](../configure/overview.md#configure-story-rendering):
+If you want to change the default set of viewports, you can set the global `parameters.viewport` [parameter](../writing-stories/parameters.md) in your [`.storybook/preview.js`](../configure/index.md#configure-story-rendering):
@@ -32,12 +32,12 @@ If you want to change the default set of viewports, you can set the global `para
The viewport global can take an object with the following keys:
-| Field | Type | Description | Default Value |
+| Field | Type | Description | Default Value |
| ---------------------- | :-----: | :-------------------------------------------------------: | :------------: |
-| **defaultViewport** | String | Sets the default viewport | `'responsive'` |
-| **defaultOrientation** | String | Sets the default orientation (e.g. portrait or landscape) | `'portrait'` |
-| **disable** | Boolean | Disables the viewport | N/A |
-| **viewports** | Object | The configuration object for the viewport | `{}` |
+| **defaultViewport** | String | Sets the default viewport | `'responsive'` |
+| **defaultOrientation** | String | Sets the default orientation (e.g. portrait or landscape) | `'portrait'` |
+| **disable** | Boolean | Disables the viewport | N/A |
+| **viewports** | Object | The configuration object for the viewport | `{}` |
The viewports object needs the following keys:
@@ -51,7 +51,7 @@ The viewports object needs the following keys:
By default, Storybook uses a [minimal set of viewports](https://github.com/storybookjs/storybook/blob/next/code/addons/viewport/src/defaults.ts#L167) to get you started. But you're not restricted to these. The addon offers a more granular list of devices that you can use.
-Change your [`.storybook/preview.js`](../configure/overview.md#configure-story-rendering) to the following:
+Change your [`.storybook/preview.js`](../configure/index.md#configure-story-rendering) to the following:
@@ -70,7 +70,7 @@ See [here](https://github.com/storybookjs/storybook/blob/master/addons/viewport/
### Add new devices
-If you have either a specific viewport or a list of viewports that you need to use, you can modify your [`.storybook/preview.js`](../configure/overview.md#configure-story-rendering) file and include them:
+If you have either a specific viewport or a list of viewports that you need to use, you can modify your [`.storybook/preview.js`](../configure/index.md#configure-story-rendering) file and include them:
diff --git a/docs/faq.md b/docs/faq.md
index 6539f6a3431f..8247bb3daa78 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -226,7 +226,7 @@ We're working on overcoming this limitation, and soon you'll be able to use them
Storybook does not work unless you have at least one local story (or docs page) defined in your project. In this context, local means a `.stories.*` or `.mdx` file that is referenced in your project's `.storybook/main.js` config.
-If you're in a [Storybook composition](https://storybook.js.org/docs/react/sharing/storybook-composition) scenario, where you have multiple Storybooks, and want to have an extra Storybook with no stories of its own, that serves as a "glue" for all the other Storybooks in a project for demo/documentation purposes, you can do the following steps:
+If you're in a [Storybook composition](https://storybook.js.org/docs/sharing/storybook-composition) scenario, where you have multiple Storybooks, and want to have an extra Storybook with no stories of its own, that serves as a "glue" for all the other Storybooks in a project for demo/documentation purposes, you can do the following steps:
Introduce a single `.mdx` docs page (addon-essentials or addon-docs required), that serves as an Introduction page, like so:
@@ -244,7 +244,7 @@ And then refer to it in your Storybook config file:
// .storybook/main.js
const config = {
// define at least one local story/page here
- stories: ['../Introduction.mdx'],
+ stories: ['../index.mdx'],
// define composed Storybooks here
refs: {
firstProject: { title: 'First', url: 'some-url' },
@@ -276,7 +276,7 @@ We're only covering versions 5.3 and 5.0 as they were important milestones for S
| | What's a story | [See current documentation](./get-started/whats-a-story.md) | [See versioned documentation for your framework](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/guides) | [See versioned documentation for your framework](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/guides) |
| | Browse Stories | [See current documentation](./get-started/browse-stories.md) | [See versioned documentation for your framework](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/guides) | [See versioned documentation for your framework](https://github.com/storybookjs/storybook/blob/release/5.0/docs/src/pages/guides) |
| | Setup | [See current documentation](./get-started/setup.md) | [See versioned documentation for your framework](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/guides) | [See versioned documentation for your framework](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/guides) |
-| Write stories | Introduction | [See current documentation](./writing-stories/introduction.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/basics/writing-stories) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/basics/writing-stories) |
+| Write stories | Introduction | [See current documentation](./writing-stories/index.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/basics/writing-stories) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/basics/writing-stories) |
| | Parameters | [See current documentation](./writing-stories/parameters.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/basics/writing-stories/index.md#parameters) | Non existing feature or undocumented |
| | Decorators | [See current documentation](./writing-stories/decorators.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/basics/writing-stories/index.md#decorators) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/basics/writing-stories/index.md#using-decorators) |
| | Naming components and hierarchy | [See current documentation](./writing-stories/naming-components-and-hierarchy.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/basics/writing-stories) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/basics/writing-stories) |
@@ -301,7 +301,7 @@ We're only covering versions 5.3 and 5.0 as they were important milestones for S
| | Viewport | [See current documentation](./essentials/viewport.md) | [See addon versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/addons/viewport) | [See addon versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/addons/viewport) |
| | Backgrounds | [See current documentation](./essentials/backgrounds.md) | [See addon versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/addons/backgrounds) | [See addon versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/addons/backgrounds) |
| | Toolbars and globals | [See current documentation](./essentials/toolbars-and-globals.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/basics/toolbar-guide) | Non existing feature or undocumented |
-| Configure | Overview | [See current documentation](./configure/overview.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/configurations/overview) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/basics/writing-stories) |
+| Configure | Overview | [See current documentation](./configure/index.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/configurations/overview) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/basics/writing-stories) |
| | Integration/Frameworks | [See current documentation](./configure/frameworks.md) | Non existing feature or undocumented | Non existing feature or undocumented |
| | Integration/Framework support for frameworks | [See current documentation](./configure/frameworks-feature-support.md) | Non existing feature or undocumented | Non existing feature or undocumented |
| | Integration/Babel | [See current documentation](./configure/babel.md) | See versioned documentation [here](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/configurations/custom-babel-config) | See versioned documentation [here](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/configurations/custom-babel-config) |
@@ -314,11 +314,11 @@ We're only covering versions 5.3 and 5.0 as they were important milestones for S
| | User Interface/Theming | [See current documentation](./configure/theming.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/configurations/theming) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/configurations/theming) |
| | User Interface/Sidebar & URLS | [See current documentation](./configure/sidebar-and-urls.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/configurations/options-parameter) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/configurations/options-parameter) |
| | Environment variables | [See current documentation](./configure/environment-variables.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/configurations/env-vars) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/configurations/env-vars) |
-| Builders | Introduction | [See current documentation](./builders/overview.md) | Non existing feature or undocumented | Non existing feature or undocumented |
+| Builders | Introduction | [See current documentation](./builders/index.md) | Non existing feature or undocumented | Non existing feature or undocumented |
| | Vite | [See current documentation](./builders/vite.md) | Non existing feature or undocumented | Non existing feature or undocumented |
| | Webpack | [See current documentation](./builders/webpack.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/configurations/custom-webpack-config/index.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/configurations/custom-webpack-config/index.md) |
| | Builder API | [See current documentation](./builders/builder-api.md) | Non existing feature or undocumented | Non existing feature or undocumented |
-| Addons | Introduction | [See current documentation](./addons/introduction.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/addons/writing-addons) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/addons/writing-addons) |
+| Addons | Introduction | [See current documentation](./addons/index.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/addons/writing-addons) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/addons/writing-addons) |
| | Install addons | [See current documentation](./addons/install-addons.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/addons/using-addons/) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/addons/using-addons/) |
| | Writing Addons | [See current documentation](./addons/writing-addons.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/addons/writing-addons) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.0/docs/src/pages/addons/writing-addons) |
| | Writing Presets | [See current documentation](./addons/writing-presets.md) | [See versioned documentation](https://github.com/storybookjs/storybook/tree/release/5.3/docs/src/pages/presets/writing-presets) | Non existing feature or undocumented |
@@ -482,7 +482,7 @@ import type { ComponentStory, ComponentMeta } from '@storybook/react';
const StoryMeta: ComponentMeta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Button',
diff --git a/docs/frameworks.js b/docs/frameworks.js
index ed7483a3b273..4732c9cde203 100644
--- a/docs/frameworks.js
+++ b/docs/frameworks.js
@@ -18,7 +18,7 @@ module.exports = {
{
name: 'Docs',
unsupported: [],
- path: 'writing-docs/introduction',
+ path: 'writing-docs',
},
{
name: 'Viewport',
diff --git a/docs/get-started/browse-stories.md b/docs/get-started/browse-stories.md
index 391da5320dad..618c444e46ae 100644
--- a/docs/get-started/browse-stories.md
+++ b/docs/get-started/browse-stories.md
@@ -1,5 +1,6 @@
---
title: 'Browse Stories'
+hideRendererSelector: true
---
Last chapter, we learned that stories correspond with discrete component states. This chapter demonstrates how to use Storybook as a workshop for building components.
@@ -19,7 +20,6 @@ Navigate between stories by clicking on them in the sidebar. Try the sidebar sea
Or use keyboard shortcuts. Click on the Storybook's menu to see the list of shortcuts available.
-
![Storybook keyboard shortcuts examples](./storybook-keyboard-shortcuts.png)
## Toolbar
@@ -40,7 +40,7 @@ Storybook ships with time-saving tools built-in. The toolbar contains tools that
/>
-The [βDocsβ](../writing-docs/introduction.md) page displays auto-generated documentation for components (inferred from the source code). Usage documentation is helpful when sharing reusable components with your team, for example, in an application.
+The [βDocsβ](../writing-docs/index.md) page displays auto-generated documentation for components (inferred from the source code). Usage documentation is helpful when sharing reusable components with your team, for example, in an application.
![Storybook keyboard shortcuts examples](./mdx-example.png)
@@ -63,7 +63,7 @@ Addons are plugins that extend Storybook's core functionality. You can find them
/>
-Storybook is extensible. Our rich ecosystem of addons helps you test, document, and optimize your stories. You can also create an addon to satisfy your workflow requirements. Read more in the [addons section](../addons/introduction.md).
+Storybook is extensible. Our rich ecosystem of addons helps you test, document, and optimize your stories. You can also create an addon to satisfy your workflow requirements. Read more in the [addons section](../addons/index.md).
In the next chapter, we'll get your components rendering in Storybook so you can use it to supercharge component development.
diff --git a/docs/get-started/conclusion.md b/docs/get-started/conclusion.md
index 074d4dd09a48..83880dbc11bb 100644
--- a/docs/get-started/conclusion.md
+++ b/docs/get-started/conclusion.md
@@ -1,11 +1,12 @@
---
title: 'Conclusion'
+hideRendererSelector: true
---
Congratulations! You learned the basics. Storybook is the most popular tool for UI component development and documentation. Youβll be able to transfer these skills to thousands of companies that use Storybook to build UIs including GitHub, Airbnb, and Stripe.
If youβd like to learn workflows for building app UIs with Storybook, check out our in-depth guides over at the [tutorials](https://storybook.js.org/tutorials/) page. Continue reading for detailed information on how to use Storybook APIs.
-- [How to write stories](../writing-stories/introduction.md)
-- [How to document components and design systems](../writing-docs/introduction.md)
+- [How to write stories](../writing-stories/index.md)
+- [How to document components and design systems](../writing-docs/index.md)
- [View example Storybooks from leading companies](https://storybook.js.org/showcase)
diff --git a/docs/get-started/setup.md b/docs/get-started/setup.md
index c454a7648edc..79b0a236eabf 100644
--- a/docs/get-started/setup.md
+++ b/docs/get-started/setup.md
@@ -57,7 +57,7 @@ Don't see the tool that you're looking for? Check out the [styling and css](../c
## Configure Storybook for your stack
-Storybook comes with a permissive [default configuration](../configure/overview.md). It attempts to customize itself to fit your setup. But itβs not foolproof.
+Storybook comes with a permissive [default configuration](../configure/index.md). It attempts to customize itself to fit your setup. But itβs not foolproof.
Your project may have additional requirements before components can be rendered in isolation. This warrants customizing configuration further. There are three broad categories of configuration you might need.
@@ -86,7 +86,7 @@ If a particular story has a problem rendering, often it means your component exp
A common frontend pattern is for components to assume that they render in a specific βcontextβ with parent components higher up the rendering hierarchy (for instance, theme providers).
-Use [decorators](../writing-stories/decorators.md) to βwrapβ every story in the necessary context providers. The [`.storybook/preview.js`](../configure/overview.md#configure-story-rendering) file allows you to customize how components render in Canvas, the preview iframe. See how you can wrap every component rendered in Storybook with [Styled Components](https://styled-components.com/) `ThemeProvider`, [Vue's Fontawesome](https://github.com/FortAwesome/vue-fontawesome), or with an Angular theme provider component in the example below.
+Use [decorators](../writing-stories/decorators.md) to βwrapβ every story in the necessary context providers. The [`.storybook/preview.js`](../configure/index.md#configure-story-rendering) file allows you to customize how components render in Canvas, the preview iframe. See how you can wrap every component rendered in Storybook with [Styled Components](https://styled-components.com/) `ThemeProvider`, [Vue's Fontawesome](https://github.com/FortAwesome/vue-fontawesome), or with an Angular theme provider component in the example below.
diff --git a/docs/get-started/whats-a-story.md b/docs/get-started/whats-a-story.md
index 5adfded2f947..0416e3a2809e 100644
--- a/docs/get-started/whats-a-story.md
+++ b/docs/get-started/whats-a-story.md
@@ -97,6 +97,6 @@ Stories are also helpful for checking that UI continues to look correct as you m
/>
-Checking componentβs stories as you develop helps prevent accidental regressions. [Tools that integrate with Storybook can automate this](../writing-tests/introduction.md) for you.
+Checking componentβs stories as you develop helps prevent accidental regressions. [Tools that integrate with Storybook can automate this](../writing-tests/index.md) for you.
Now that weβve seen the basic anatomy of a story letβs see how we use Storybookβs UI to develop stories.
diff --git a/docs/get-started/why-storybook.md b/docs/get-started/why-storybook.md
index 7322d2d57c2e..efc231d34d75 100644
--- a/docs/get-started/why-storybook.md
+++ b/docs/get-started/why-storybook.md
@@ -111,7 +111,7 @@ When you write stories for components, you get a bunch of additional benefits fo
#### π Develop UIs that are more durable
-Isolate components and pages and track their use cases as [stories](../writing-stories/introduction.md). Verify hard-to-reach edge cases of UI. Use addons to mock everything a component needsβcontext, API requests, device features, etc.
+Isolate components and pages and track their use cases as [stories](../writing-stories/index.md). Verify hard-to-reach edge cases of UI. Use addons to mock everything a component needsβcontext, API requests, device features, etc.
#### β Test UIs with less effort and no flakes
@@ -119,7 +119,7 @@ Stories are a pragmatic, reproducible way of tracking UI states. Use them to spo
#### π Document UI for your team to reuse
-Storybook is the single source of truth for your UI. Stories index all your components and their various states, making it easy for your team to find and reuse existing UI patterns. Storybook also auto-generates [documentation](../writing-docs/introduction.md) from those stories.
+Storybook is the single source of truth for your UI. Stories index all your components and their various states, making it easy for your team to find and reuse existing UI patterns. Storybook also auto-generates [documentation](../writing-docs/index.md) from those stories.
#### π€ Share how the UI actually works
diff --git a/docs/migration-guide.md b/docs/migration-guide.md
index ddd2d8faeab0..6f075c9904f2 100644
--- a/docs/migration-guide.md
+++ b/docs/migration-guide.md
@@ -69,7 +69,7 @@ In addition to the automated upgrades above, there are manual migrations that mi
### Upgrade MDX1 to MDX2
-Storybook 7 uses MDX2 by default for rendering [docs](./writing-docs/introduction.md). The upgrade from MDX1 to MDX2 is not fully automated, due to the large number of changes between versions. Fortunately, we have some tips to help make it a lot easier.
+Storybook 7 uses MDX2 by default for rendering [docs](./writing-docs/index.md). The upgrade from MDX1 to MDX2 is not fully automated, due to the large number of changes between versions. Fortunately, we have some tips to help make it a lot easier.
#### Automatically detect MDX2 errors with a CLI tool
@@ -183,7 +183,7 @@ npx storybook@latest migrate storiesof-to-csf --glob="src/**/*.stories.tsx"
### .stories.mdx to MDX+CSF
-Storybook 7 provides a cleaner [docs](./writing-docs/introduction.md) that defines manual documentation in pure MDX and stories in CSF, rather than the previous `.stories.mdx` hybrid approach, which is now deprecated. You can automatically convert your files using the following codemod (make sure to update the glob to fit your files):
+Storybook 7 provides a cleaner [docs](./writing-docs/index.md) that defines manual documentation in pure MDX and stories in CSF, rather than the previous `.stories.mdx` hybrid approach, which is now deprecated. You can automatically convert your files using the following codemod (make sure to update the glob to fit your files):
```sh
npx storybook@latest migrate mdx-to-csf --glob "src/**/*.stories.mdx"
diff --git a/docs/sharing/design-integrations.md b/docs/sharing/design-integrations.md
index d2211a7b52d9..afc2c596c597 100644
--- a/docs/sharing/design-integrations.md
+++ b/docs/sharing/design-integrations.md
@@ -176,5 +176,5 @@ Integrate Adobe XD with Storybook using the [design addon](https://storybook.js.
Extend and customize Storybook by building an integration. Integrate with lower-level Storybook APIs or bootstrap an addon to customize Storybook's UI and behavior.
-- [Addon documentation](../addons/introduction.md)
+- [Addon documentation](../addons/index.md)
- [Create an addon tutorial](https://storybook.js.org/tutorials/create-an-addon/)
diff --git a/docs/sharing/index.md b/docs/sharing/index.md
new file mode 100644
index 000000000000..93377730e482
--- /dev/null
+++ b/docs/sharing/index.md
@@ -0,0 +1,12 @@
+---
+title: 'Sharing'
+hideRendererSelector: true
+---
+
+You have your components ready and tested. That's great! Now you want to make your component library available to your team or community to help them understand how they work. There's mupliple ways you can do that. You can publish your Storybook to services like Chromatic, embed some of your stories in your own website, or use third party services like Figma.
+
+- [Publish](./publish-storybook.md)
+- [Embed](./embed.md)
+- [Design integrations](./design-integrations.md)
+- [Composition](./composition.md)
+- [Package Composition](./package-composition.md)
diff --git a/docs/sharing/package-composition.md b/docs/sharing/package-composition.md
index ba94040b90b0..96833ce02931 100644
--- a/docs/sharing/package-composition.md
+++ b/docs/sharing/package-composition.md
@@ -20,7 +20,7 @@ Composition happens automatically if the package [supports](#for-authors) it. Wh
### Set up
-If you want to configure how the composed Storybook behaves, you can disable the `ref` element in your [`.storybook/main.js`](../configure/overview.md#configure-story-rendering)
+If you want to configure how the composed Storybook behaves, you can disable the `ref` element in your [`.storybook/main.js`](../configure/index.md#configure-story-rendering)
diff --git a/docs/sharing/storybook-composition.md b/docs/sharing/storybook-composition.md
index a9e50a8c54d4..987d453e51df 100644
--- a/docs/sharing/storybook-composition.md
+++ b/docs/sharing/storybook-composition.md
@@ -17,7 +17,7 @@ Youβll see the composed Storybookβs stories in the sidebar alongside your ow
## Compose published Storybooks
-In your [`.storybook/main.js`](../configure/overview.md#configure-story-rendering) file add a `refs` field with information about the reference Storybook. Pass in a URL to a statically built Storybook.
+In your [`.storybook/main.js`](../configure/index.md#configure-story-rendering) file add a `refs` field with information about the reference Storybook. Pass in a URL to a statically built Storybook.
@@ -95,7 +95,7 @@ If you're using Storybook 6.4, or higher, you can optimize your composition via
-If you already enabled automatic code splitting via the [`storyStoreV7`](https://storybook.js.org/docs/react/builders/webpack#code-splitting), you won't need this flag as it will automatically generate the `index.json` file.
+If you already enabled automatic code splitting via the [`storyStoreV7`](https://storybook.js.org/docs/builders/webpack#code-splitting), you won't need this flag as it will automatically generate the `index.json` file.
diff --git a/docs/snippets/angular/build-storybook-production-mode.with-builder.js.mdx b/docs/snippets/angular/build-storybook-production-mode.with-builder.js.mdx
index 36fcc549b41c..326bfdb04741 100644
--- a/docs/snippets/angular/build-storybook-production-mode.with-builder.js.mdx
+++ b/docs/snippets/angular/build-storybook-production-mode.with-builder.js.mdx
@@ -1,6 +1,6 @@
```shell
# Builds Storybook with Angular's custom builder
-# See https://storybook.js.org/docs/angular/get-started/install
+# See https://storybook.js.org/docs/get-started/install
# to learn how to create the custom builder
ng run my-project:build-storybook
```
diff --git a/docs/snippets/angular/button-story-default-export.ts.mdx b/docs/snippets/angular/button-story-default-export.ts.mdx
index 1fde5eafe2ee..ba2fb09ff5b7 100644
--- a/docs/snippets/angular/button-story-default-export.ts.mdx
+++ b/docs/snippets/angular/button-story-default-export.ts.mdx
@@ -7,7 +7,7 @@ import { Button } from './button.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Button',
diff --git a/docs/snippets/angular/button-story-grouped.ts.mdx b/docs/snippets/angular/button-story-grouped.ts.mdx
index d7cb9f22491e..c3bc26b80c47 100644
--- a/docs/snippets/angular/button-story-grouped.ts.mdx
+++ b/docs/snippets/angular/button-story-grouped.ts.mdx
@@ -7,7 +7,7 @@ import { Button } from './button.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Design System/Atoms/Button',
diff --git a/docs/snippets/angular/button-story-hoisted.ts.mdx b/docs/snippets/angular/button-story-hoisted.ts.mdx
index 2f3ac8602bf5..cf3261257e3a 100644
--- a/docs/snippets/angular/button-story-hoisted.ts.mdx
+++ b/docs/snippets/angular/button-story-hoisted.ts.mdx
@@ -7,7 +7,7 @@ import { Button as ButtonComponent } from './button.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Design System/Atoms/Button',
diff --git a/docs/snippets/angular/button-story-rename-story.ts.mdx b/docs/snippets/angular/button-story-rename-story.ts.mdx
index 08c0c9a903e7..e71e1d6f5db1 100644
--- a/docs/snippets/angular/button-story-rename-story.ts.mdx
+++ b/docs/snippets/angular/button-story-rename-story.ts.mdx
@@ -14,7 +14,7 @@ type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/angular/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Primary: Story = {
diff --git a/docs/snippets/angular/button-story-with-addon-example.ts.mdx b/docs/snippets/angular/button-story-with-addon-example.ts.mdx
index cfafc7520598..4515c118ae9b 100644
--- a/docs/snippets/angular/button-story-with-addon-example.ts.mdx
+++ b/docs/snippets/angular/button-story-with-addon-example.ts.mdx
@@ -7,7 +7,7 @@ import { Button } from './button.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Button',
@@ -25,7 +25,7 @@ type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/angular/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Basic: Story = {
diff --git a/docs/snippets/angular/button-story-with-emojis.ts.mdx b/docs/snippets/angular/button-story-with-emojis.ts.mdx
index b89137122e33..4f42ba5a3d37 100644
--- a/docs/snippets/angular/button-story-with-emojis.ts.mdx
+++ b/docs/snippets/angular/button-story-with-emojis.ts.mdx
@@ -14,7 +14,7 @@ type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/angular/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Primary: Story = {
diff --git a/docs/snippets/angular/button-story-with-parameters.ts.mdx b/docs/snippets/angular/button-story-with-parameters.ts.mdx
index a58321591b37..8cbd9e76fec5 100644
--- a/docs/snippets/angular/button-story-with-parameters.ts.mdx
+++ b/docs/snippets/angular/button-story-with-parameters.ts.mdx
@@ -7,7 +7,7 @@ import { Button } from './button.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Button',
diff --git a/docs/snippets/angular/button-story.ts.mdx b/docs/snippets/angular/button-story.ts.mdx
index 4afae9406a3a..3805e34f9615 100644
--- a/docs/snippets/angular/button-story.ts.mdx
+++ b/docs/snippets/angular/button-story.ts.mdx
@@ -14,7 +14,7 @@ type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/angular/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Primary: Story = {
diff --git a/docs/snippets/angular/checkbox-story-grouped.ts.mdx b/docs/snippets/angular/checkbox-story-grouped.ts.mdx
index e99b39119e7d..c675e5804220 100644
--- a/docs/snippets/angular/checkbox-story-grouped.ts.mdx
+++ b/docs/snippets/angular/checkbox-story-grouped.ts.mdx
@@ -7,7 +7,7 @@ import { Checkbox } from './checkbox.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Design System/Atoms/Checkbox',
diff --git a/docs/snippets/angular/component-story-auto-title.csf3-story-ts.ts.mdx b/docs/snippets/angular/component-story-auto-title.csf3-story-ts.ts.mdx
index 904b9f7d1b95..5b756e34af14 100644
--- a/docs/snippets/angular/component-story-auto-title.csf3-story-ts.ts.mdx
+++ b/docs/snippets/angular/component-story-auto-title.csf3-story-ts.ts.mdx
@@ -7,7 +7,7 @@ import { MyComponent } from './MyComponent.component';
/**
* Story written in CSF 3.0 with auto title generation
- * See https://storybook.js.org/docs/angular/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn more about it.
*/
const meta: Meta = {
diff --git a/docs/snippets/angular/component-story-figma-integration.ts.mdx b/docs/snippets/angular/component-story-figma-integration.ts.mdx
index 548298968037..76b83ff077f5 100644
--- a/docs/snippets/angular/component-story-figma-integration.ts.mdx
+++ b/docs/snippets/angular/component-story-figma-integration.ts.mdx
@@ -5,7 +5,7 @@ import type { Meta, StoryObj } from '@storybook/angular/';
import { MyComponent } from './MyComponent.component';
-// More on default export: https://storybook.js.org/docs/angular/writing-stories/introduction#default-export
+// More on default export: https://storybook.js.org/docs/writing-stories#default-export
const meta: Meta = {
component: MyComponent,
};
diff --git a/docs/snippets/angular/foo-bar-baz-story.ts.mdx b/docs/snippets/angular/foo-bar-baz-story.ts.mdx
index bba892a08542..ae0e503e1088 100644
--- a/docs/snippets/angular/foo-bar-baz-story.ts.mdx
+++ b/docs/snippets/angular/foo-bar-baz-story.ts.mdx
@@ -7,7 +7,7 @@ import { Foo } from './Foo.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Foo/Bar',
diff --git a/docs/snippets/angular/list-story-reuse-data.ts.mdx b/docs/snippets/angular/list-story-reuse-data.ts.mdx
index ce151c88fee7..3ff20f0d824a 100644
--- a/docs/snippets/angular/list-story-reuse-data.ts.mdx
+++ b/docs/snippets/angular/list-story-reuse-data.ts.mdx
@@ -28,7 +28,7 @@ type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/angular/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const ManyItems: Story = {
diff --git a/docs/snippets/angular/list-story-template.ts.mdx b/docs/snippets/angular/list-story-template.ts.mdx
index b6e818e9c5c8..ec87766682d4 100644
--- a/docs/snippets/angular/list-story-template.ts.mdx
+++ b/docs/snippets/angular/list-story-template.ts.mdx
@@ -15,7 +15,7 @@ import { Unchecked } from './ListItem.stories';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'List',
@@ -33,7 +33,7 @@ type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/angular/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
const ListTemplate: Story = {
diff --git a/docs/snippets/angular/list-story-unchecked.ts.mdx b/docs/snippets/angular/list-story-unchecked.ts.mdx
index b33477c61c4f..31b0be7651c7 100644
--- a/docs/snippets/angular/list-story-unchecked.ts.mdx
+++ b/docs/snippets/angular/list-story-unchecked.ts.mdx
@@ -15,7 +15,7 @@ import { Unchecked } from './ListItem.stories';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'List',
@@ -33,7 +33,7 @@ type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/angular/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const OneItem: Story = {
diff --git a/docs/snippets/angular/loader-story.ts.mdx b/docs/snippets/angular/loader-story.ts.mdx
index b7f15ac294a2..1c9396e02dc9 100644
--- a/docs/snippets/angular/loader-story.ts.mdx
+++ b/docs/snippets/angular/loader-story.ts.mdx
@@ -26,7 +26,7 @@ type Story = StoryObj;
/*
*π Render functions are a framework specific feature to allow you control on how the component renders.
- * See https://storybook.js.org/docs/angular/api/csf
+ * See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Primary: Story = {
diff --git a/docs/snippets/angular/login-form-with-play-function.ts.mdx b/docs/snippets/angular/login-form-with-play-function.ts.mdx
index 076c8719d478..a90a40bf5dba 100644
--- a/docs/snippets/angular/login-form-with-play-function.ts.mdx
+++ b/docs/snippets/angular/login-form-with-play-function.ts.mdx
@@ -19,7 +19,7 @@ type Story = StoryObj;
export const EmptyForm: Story = {};
/*
- * See https://storybook.js.org/docs/angular/writing-stories/play-function#working-with-the-canvas
+ * See https://storybook.js.org/docs/writing-stories/play-function#working-with-the-canvas
* to learn more about using the canvasElement to query the DOM
*/
export const FilledForm: Story = {
@@ -31,7 +31,7 @@ export const FilledForm: Story = {
await userEvent.type(canvas.getByTestId('password'), 'a-random-password');
- // See https://storybook.js.org/docs/angular/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
+ // See https://storybook.js.org/docs/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
await userEvent.click(canvas.getByRole('button'));
// π Assert DOM structure
diff --git a/docs/snippets/angular/my-component-play-function-alt-queries.ts.mdx b/docs/snippets/angular/my-component-play-function-alt-queries.ts.mdx
index 9811e482dce6..c21dc1d1c8b3 100644
--- a/docs/snippets/angular/my-component-play-function-alt-queries.ts.mdx
+++ b/docs/snippets/angular/my-component-play-function-alt-queries.ts.mdx
@@ -15,14 +15,14 @@ export default meta;
type Story = StoryObj;
/*
- * See https://storybook.js.org/docs/angular/writing-stories/play-function#working-with-the-canvas
+ * See https://storybook.js.org/docs/writing-stories/play-function#working-with-the-canvas
* to learn more about using the canvasElement to query the DOM
*/
export const ExampleWithRole: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- // See https://storybook.js.org/docs/angular/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
+ // See https://storybook.js.org/docs/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
await userEvent.click(canvas.getByRole('button', { name: / button label/i }));
},
};
diff --git a/docs/snippets/angular/my-component-play-function-composition.ts.mdx b/docs/snippets/angular/my-component-play-function-composition.ts.mdx
index ab10e2c86316..94cebdb91efb 100644
--- a/docs/snippets/angular/my-component-play-function-composition.ts.mdx
+++ b/docs/snippets/angular/my-component-play-function-composition.ts.mdx
@@ -15,7 +15,7 @@ export default meta;
type Story = StoryObj;
/*
- * See https://storybook.js.org/docs/angular/writing-stories/play-function#working-with-the-canvas
+ * See https://storybook.js.org/docs/writing-stories/play-function#working-with-the-canvas
* to learn more about using the canvasElement to query the DOM
*/
export const FirstStory: Story = {
diff --git a/docs/snippets/angular/my-component-play-function-query-findby.ts.mdx b/docs/snippets/angular/my-component-play-function-query-findby.ts.mdx
index d85ab7053a8c..4fbd9cd8544e 100644
--- a/docs/snippets/angular/my-component-play-function-query-findby.ts.mdx
+++ b/docs/snippets/angular/my-component-play-function-query-findby.ts.mdx
@@ -15,7 +15,7 @@ export default meta;
type Story = StoryObj;
/*
- * See https://storybook.js.org/docs/angular/writing-stories/play-function#working-with-the-canvas
+ * See https://storybook.js.org/docs/writing-stories/play-function#working-with-the-canvas
* to learn more about using the canvasElement to query the DOM
*/
export const AsyncExample: Story = {
diff --git a/docs/snippets/angular/my-component-play-function-waitfor.ts.mdx b/docs/snippets/angular/my-component-play-function-waitfor.ts.mdx
index 94a155754bb1..044a52acdfb9 100644
--- a/docs/snippets/angular/my-component-play-function-waitfor.ts.mdx
+++ b/docs/snippets/angular/my-component-play-function-waitfor.ts.mdx
@@ -15,7 +15,7 @@ export default meta;
type Story = StoryObj;
/*
- * See https://storybook.js.org/docs/angular/writing-stories/play-function#working-with-the-canvas
+ * See https://storybook.js.org/docs/writing-stories/play-function#working-with-the-canvas
* to learn more about using the canvasElement to query the DOM
*/
export const ExampleAsyncStory: Story = {
@@ -30,7 +30,7 @@ export const ExampleAsyncStory: Story = {
delay: 100,
});
- // See https://storybook.js.org/docs/angular/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
+ // See https://storybook.js.org/docs/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
const Submit = canvas.getByRole('button');
await userEvent.click(Submit);
diff --git a/docs/snippets/angular/my-component-play-function-with-clickevent.ts.mdx b/docs/snippets/angular/my-component-play-function-with-clickevent.ts.mdx
index 85fa8655e5e4..4cccfe654999 100644
--- a/docs/snippets/angular/my-component-play-function-with-clickevent.ts.mdx
+++ b/docs/snippets/angular/my-component-play-function-with-clickevent.ts.mdx
@@ -15,14 +15,14 @@ export default meta;
type Story = StoryObj;
/*
- * See https://storybook.js.org/docs/angular/writing-stories/play-function#working-with-the-canvas
+ * See https://storybook.js.org/docs/writing-stories/play-function#working-with-the-canvas
* to learn more about using the canvasElement to query the DOM
*/
export const ClickExample: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- // See https://storybook.js.org/docs/angular/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
+ // See https://storybook.js.org/docs/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
await userEvent.click(canvas.getByRole('button'));
},
};
@@ -31,7 +31,7 @@ export const FireEventExample: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- // See https://storybook.js.org/docs/angular/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
+ // See https://storybook.js.org/docs/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
await fireEvent.click(canvas.getByTestId('data-testid'));
},
};
diff --git a/docs/snippets/angular/my-component-play-function-with-delay.ts.mdx b/docs/snippets/angular/my-component-play-function-with-delay.ts.mdx
index 1160573a8c8e..c8928fde3048 100644
--- a/docs/snippets/angular/my-component-play-function-with-delay.ts.mdx
+++ b/docs/snippets/angular/my-component-play-function-with-delay.ts.mdx
@@ -15,7 +15,7 @@ export default meta;
type Story = StoryObj;
/*
- * See https://storybook.js.org/docs/angular/writing-stories/play-function#working-with-the-canvas
+ * See https://storybook.js.org/docs/writing-stories/play-function#working-with-the-canvas
* to learn more about using the canvasElement to query the DOM
*/
export const DelayedStory: Story = {
diff --git a/docs/snippets/angular/my-component-play-function-with-selectevent.ts.mdx b/docs/snippets/angular/my-component-play-function-with-selectevent.ts.mdx
index 4ab4e2e37200..629d8b1b562a 100644
--- a/docs/snippets/angular/my-component-play-function-with-selectevent.ts.mdx
+++ b/docs/snippets/angular/my-component-play-function-with-selectevent.ts.mdx
@@ -20,7 +20,7 @@ function sleep(ms: number) {
}
/*
- * See https://storybook.js.org/docs/angular/writing-stories/play-function#working-with-the-canvas
+ * See https://storybook.js.org/docs/writing-stories/play-function#working-with-the-canvas
* to learn more about using the canvasElement to query the DOM
*/
export const ExampleChangeEvent: Story = {
diff --git a/docs/snippets/angular/my-component-story-mandatory-export.ts.mdx b/docs/snippets/angular/my-component-story-mandatory-export.ts.mdx
index 17f2e6a170e8..2b52d9ae2671 100644
--- a/docs/snippets/angular/my-component-story-mandatory-export.ts.mdx
+++ b/docs/snippets/angular/my-component-story-mandatory-export.ts.mdx
@@ -7,7 +7,7 @@ import { MyComponent } from './MyComponent.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Path/To/MyComponent',
diff --git a/docs/snippets/angular/other-foo-bar-story.ts.mdx b/docs/snippets/angular/other-foo-bar-story.ts.mdx
index 606edfe6af2c..ed9d13ad4416 100644
--- a/docs/snippets/angular/other-foo-bar-story.ts.mdx
+++ b/docs/snippets/angular/other-foo-bar-story.ts.mdx
@@ -7,7 +7,7 @@ import { Foo } from './Foo.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'OtherFoo/Bar',
diff --git a/docs/snippets/angular/register-component-with-play-function.ts.mdx b/docs/snippets/angular/register-component-with-play-function.ts.mdx
index 083c1591fdb8..a30ba41143ef 100644
--- a/docs/snippets/angular/register-component-with-play-function.ts.mdx
+++ b/docs/snippets/angular/register-component-with-play-function.ts.mdx
@@ -15,7 +15,7 @@ export default meta;
type Story = StoryObj;
/*
- * See https://storybook.js.org/docs/angular/writing-stories/play-function#working-with-the-canvas
+ * See https://storybook.js.org/docs/writing-stories/play-function#working-with-the-canvas
* to learn more about using the canvasElement to query the DOM
*/
export const FilledForm: Story = {
@@ -37,7 +37,7 @@ export const FilledForm: Story = {
await userEvent.type(passwordInput, 'ExamplePassword', {
delay: 100,
});
- // See https://storybook.js.org/docs/angular/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
+ // See https://storybook.js.org/docs/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
const submitButton = canvas.getByRole('button');
await userEvent.click(submitButton);
diff --git a/docs/snippets/angular/storybook-csf-3-auto-title-redundant.ts.mdx b/docs/snippets/angular/storybook-csf-3-auto-title-redundant.ts.mdx
index a1bbb5866e1d..d6e372d543c8 100644
--- a/docs/snippets/angular/storybook-csf-3-auto-title-redundant.ts.mdx
+++ b/docs/snippets/angular/storybook-csf-3-auto-title-redundant.ts.mdx
@@ -7,7 +7,7 @@ import { MyComponent } from './MyComponent.component';
const meta: Meta = {
/* π The title prop is optional.
- * See https://storybook.js.org/docs/angular/configure/overview#configure-story-loading
+ * See https://storybook.js.org/docs/configure/#configure-story-loading
* to learn how to generate automatic titles
*/
component: MyComponent,
diff --git a/docs/snippets/angular/storybook-interactions-play-function.ts.mdx b/docs/snippets/angular/storybook-interactions-play-function.ts.mdx
index 5dbed73bfb99..2f40a6064bfe 100644
--- a/docs/snippets/angular/storybook-interactions-play-function.ts.mdx
+++ b/docs/snippets/angular/storybook-interactions-play-function.ts.mdx
@@ -20,7 +20,7 @@ export default meta;
type Story = StoryObj