Skip to content

Commit 2b285cb

Browse files
committed
Upgrade to Storybook v9
Signed-off-by: Leonardo Rossi <[email protected]>
1 parent 5c26d5f commit 2b285cb

File tree

5 files changed

+578
-979
lines changed

5 files changed

+578
-979
lines changed

.storybook/main.cjs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
module.exports = {
22
"stories": ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
3+
34
"addons": [
45
"@storybook/addon-links",
5-
"@storybook/addon-essentials",
6-
"@storybook/addon-interactions",
7-
"@chromatic-com/storybook"
6+
"@chromatic-com/storybook",
7+
"@storybook/addon-docs"
88
],
9+
910
"framework": {
1011
name: "@storybook/react-vite",
1112
options: {}
1213
},
14+
1315
"features": {},
16+
1417
"webpackFinal": async config => {
1518
config.module.rules.push({
1619
test: /\.css$/,
@@ -26,8 +29,6 @@ module.exports = {
2629
});
2730
return config;
2831
},
29-
docs: {
30-
autodocs: true
31-
},
32+
3233
"staticDirs": [{ from: '../fonts', to: '/fonts' }]
3334
};

.storybook/preview.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ export const parameters = {
2424
},
2525
],
2626
}
27-
}
27+
}
28+
export const tags = ['autodocs'];

0 commit comments

Comments
 (0)