@storybook/addon-onboarding 0.0.0-pr-26176-sha-e072ee44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # Storybook Addon Onboarding
2
+
3
+ This addon provides a guided tour in some of Storybook's features, helping you get to know about the basics of Storybook and learn how to write stories!
4
+
5
+ ![](./.github/assets/onboarding-intro.png)
6
+
7
+ ## Triggering the onboarding
8
+
9
+ This addon comes installed by default in Storybook projects and should trigger automatically.
10
+ If you want to retrigger the addon, you should make sure that your Storybook still contains the example stories that come when initializing Storybook, and you can then navigate to http://localhost:6006/?path=/onboarding after running Storybook.
11
+
12
+ ## Uninstalling
13
+
14
+ This addon serves to provide you a guided experience on the basics of Storybook. Once you are done, the addon is therefore not needed anymore and will not get activated (unless triggered manually), so you can freely remove it. Here's how to do so:
15
+
16
+ ### 1. Remove the dependency
17
+
18
+ yarn:
19
+
20
+ ```zsh
21
+ yarn remove @storybook/addon-onboarding
22
+ ```
23
+
24
+ npm:
25
+
26
+ ```zsh
27
+ npm uninstall -D @storybook/addon-onboarding
28
+ ```
29
+
30
+ pnpm:
31
+
32
+ ```zsh
33
+ pnpm remove -D @storybook/addon-onboarding
34
+ ```
35
+
36
+ ### 2. Remove the addon in your `.storybook/main.js` file
37
+
38
+ ```diff
39
+ const config = {
40
+ stories: [
41
+ "../stories/**/*.stories.mdx",
42
+ "../stories/**/*.stories.@(js|jsx|ts|tsx)",
43
+ ],
44
+ addons: [
45
+ "@storybook/addon-essentials",
46
+ - "@storybook/addon-onboarding"
47
+ ],
48
+ };
49
+ export default config;
50
+ ```