You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. Find out more at https://storybook.js.org!
48
+
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. Find out more at <ahref="https://storybook.js.org/?ref=readme">storybook.js.org</a>!
@@ -74,19 +74,19 @@ Storybook is a frontend workshop for building UI components and pages in isolati
74
74
75
75
## Getting Started
76
76
77
-
Visit [Storybook's website](https://storybook.js.org) to learn more about Storybook and to get started.
77
+
Visit [Storybook's website](https://storybook.js.org/?ref=readme) to learn more about Storybook and to get started.
78
78
79
79
### Documentation
80
80
81
-
Documentation can be found on [Storybook's docs site](https://storybook.js.org/docs).
81
+
Documentation can be found on [Storybook's docs site](https://storybook.js.org/docs?ref=readme).
82
82
83
83
### Examples
84
84
85
-
View [Component Encyclopedia](https://storybook.js.org/showcase) to see how leading teams use Storybook.
85
+
View [Component Encyclopedia](https://storybook.js.org/showcase?ref=readme) to see how leading teams use Storybook.
86
86
87
87
Use [storybook.new](https://storybook.new) to quickly create an example project in Stackblitz.
88
88
89
-
Storybook comes with a lot of [addons](https://storybook.js.org/docs/configure/user-interface/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.
89
+
Storybook comes with a lot of [addons](https://storybook.js.org/docs/configure/user-interface/storybook-addons?ref=readme) 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.
90
90
91
91
### Community
92
92
@@ -108,7 +108,7 @@ For additional help, share your issue in [the repo's GitHub Discussions](https:/
|[viewport](code/core/src/viewport/)| Change display sizes and layouts for responsive components using Storybook |
133
133
134
-
See [Addon / Framework Support Table](https://storybook.js.org/docs/configure/integration/frameworks-feature-support)
134
+
See [Addon / Framework Support Table](https://storybook.js.org/docs/configure/integration/frameworks-feature-support?ref=readme)
135
135
136
136
To continue improving your experience, we have to eventually deprecate or remove certain addons in favor of new and better tools.
137
137
138
138
If you're using info/notes, we highly recommend you migrate to [docs](code/addons/docs/) instead, and [here is a guide](code/addons/docs/docs/recipes.md#migrating-from-notesinfo-addons) to help you.
139
139
140
140
If you're using contexts, we highly recommend you migrate to [toolbars](https://github.com/storybookjs/storybook/tree/next/code/addons/toolbars) and [here is a guide](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-addon-contexts) to help you.
141
141
142
-
If you're using addon-storyshots, we highly recommend you migrate to the Storybook [test-runner](https://github.com/storybookjs/test-runner) and [here is a guide](https://storybook.js.org/docs/writing-tests/storyshots-migration-guide) to help you.
142
+
If you're using addon-storyshots, we highly recommend you migrate to the Storybook [test-runner](https://github.com/storybookjs/test-runner) and [here is a guide](https://storybook.js.org/docs/writing-tests/storyshots-migration-guide?ref=readme) to help you.
143
143
144
144
## Badges & Presentation materials
145
145
@@ -156,7 +156,7 @@ If you're looking for material to use in your Storybook presentation, such as lo
156
156
## Community
157
157
158
158
- Tweeting via [@storybookjs](https://x.com/storybookjs)
159
-
- Blogging at [storybook.js.org](https://storybook.js.org/blog/) and [Medium](https://medium.com/storybookjs)
159
+
- Blogging at [storybook.js.org](https://storybook.js.org/blog/?ref=readme) and [Medium](https://medium.com/storybookjs)
160
160
- Chatting on [Discord](https://discord.gg/storybook)
161
161
- Videos and streams at [YouTube](https://www.youtube.com/channel/UCr7Quur3eIyA_oe8FNYexfg)
Copy file name to clipboardExpand all lines: code/addons/a11y/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,4 +10,6 @@ The @storybook/addon-a11y package provides accessibility testing for Storybook s
10
10
npx storybook add @storybook/addon-a11y
11
11
```
12
12
13
-
[More on getting started with the accessibility addon](https://storybook.js.org/docs/writing-tests/accessibility-testing#accessibility-checks-with-a11y-addon)
13
+
[More on getting started with the accessibility addon](https://storybook.js.org/docs/writing-tests/accessibility-testing#accessibility-checks-with-a11y-addon?ref=readme)
14
+
15
+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).
Copy file name to clipboardExpand all lines: code/addons/docs/README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ For more information on `MDX`, see the [`MDX` reference](https://github.com/stor
76
76
77
77
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:
`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`.
141
141
142
-
> 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-blocks/doc-block-markdown) Doc Block for importing Markdown files into your Storybook documentation.
142
+
> 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-blocks/doc-block-markdown?ref=readme) Doc Block for importing Markdown files into your Storybook documentation.
143
143
144
144
## TypeScript configuration
145
145
146
-
As of SB6 [TypeScript is zero-config](https://storybook.js.org/docs/configure/integration/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).
146
+
As of SB6 [TypeScript is zero-config](https://storybook.js.org/docs/configure/integration/typescript?ref=readme) 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).
147
147
148
148
## More resources
149
149
@@ -152,3 +152,5 @@ Want to learn more? Here are some more articles on Storybook Docs:
[](http://storybooks-official.netlify.com/?selectedKind=Addons%7Cjest&selectedStory=withTests&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Ftests%2Fpanel)
8
8
@@ -20,7 +20,7 @@ Or if you're using yarn as a package manager:
20
20
21
21
## Configuration
22
22
23
-
Register the addon in your [`.storybook/main.js`](https://storybook.js.org/docs/configure#configure-your-storybook-project):
23
+
Register the addon in your [`.storybook/main.js`](https://storybook.js.org/docs/configure#configure-your-storybook-project?ref=readme):
24
24
25
25
```js
26
26
exportdefault {
@@ -84,7 +84,7 @@ Assuming that you have already created a test file for your component (e.g., `My
84
84
85
85
### Story-level
86
86
87
-
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:
87
+
In your story file, add a [decorator](https://storybook.js.org/docs/writing-stories/decorators?ref=readme) to your story's default export to display the results:
88
88
89
89
```js
90
90
// MyComponent.stories.js|jsx
@@ -99,7 +99,7 @@ export default {
99
99
};
100
100
```
101
101
102
-
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:
102
+
You can also add multiple tests results within your story by including the `jest`[parameter](https://storybook.js.org/docs/writing-stories/parameters?ref=readme), for example:
103
103
104
104
```js
105
105
// MyComponent.stories.js|jsx
@@ -130,7 +130,7 @@ Default.parameters = {
130
130
### Global level
131
131
132
132
To avoid importing the results of the tests in each story, you can update
133
-
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:
133
+
your [`.storybook/preview.js`](https://storybook.js.org/docs/configure#configure-story-rendering?ref=readme) and include a decorator allowing you to display the results only for the stories that have the `jest` parameter defined:
134
134
135
135
```js
136
136
// .storybook/preview.js
@@ -257,3 +257,5 @@ All ideas and contributions are welcome.
@@ -145,3 +145,5 @@ It accepts all the props the `a` element does, plus `story` and `kind`. It the `
145
145
```
146
146
147
147
To implement such a component for another framework, you need to add special handling for `click` event on native `a` element. See [`RoutedLink` sources](https://github.com/storybookjs/storybook/blob/next/code/addons/links/src/react/components/RoutedLink.tsx) for reference.
148
+
149
+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).
Copy file name to clipboardExpand all lines: code/addons/themes/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# @storybook/addon-themes
2
2
3
-
Storybook Addon Themes can be used which between multiple themes for components inside the preview in [Storybook](https://storybook.js.org).
3
+
Storybook Addon Themes can be used to switch between multiple themes for components inside the preview in [Storybook](https://storybook.js.org?ref=readme).
Copy file name to clipboardExpand all lines: code/builders/builder-vite/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ See [Customize Vite config](#customize-vite-config) for details about using `vit
135
135
136
136
### React Docgen
137
137
138
-
Docgen is used in Storybook to populate the props table in docs view, the controls panel, and for several other addons. Docgen is supported in Svelte, Vue 3, and React. React docgen is configurable via the [`typescript.reactDocgen`](https://storybook.js.org/docs/api/main-config-typescript#reactdocgen) setting in `.storybook/main.js`.
138
+
Docgen is used in Storybook to populate the props table in docs view, the controls panel, and for several other addons. Docgen is supported in Svelte, Vue 3, and React. React docgen is configurable via the [`typescript.reactDocgen`](https://storybook.js.org/docs/api/main-config-typescript#reactdocgen?ref=readme) setting in `.storybook/main.js`.
139
139
140
140
```javascript
141
141
exportdefault {
@@ -151,7 +151,7 @@ If you're using TypeScript, we encourage you to experiment and see which option
151
151
152
152
The builder will by default enable Vite's [server.fs.strict](https://vitejs.dev/config/#server-fs-strict)
153
153
option, for increased security. The default project `root` is set to the parent directory of the
154
-
Storybook configuration directory. This can be overridden in [viteFinal](https://storybook.js.org/docs/api/main-config-vite-final).
154
+
Storybook configuration directory. This can be overridden in [viteFinal](https://storybook.js.org/docs/api/main-config-vite-final?ref=readme).
155
155
156
156
## Known issues
157
157
@@ -167,3 +167,5 @@ Have a look at the GitHub issues with the `vite` label for known bugs. If you fi
167
167
feel free to create an issue or send a pull request!
168
168
169
169
Please read the [How to contribute](/CONTRIBUTING.md) guide.
170
+
171
+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).
0 commit comments