Skip to content

Commit 515abd1

Browse files
Update storybook
1 parent d5c8b3d commit 515abd1

File tree

3 files changed

+571
-1067
lines changed

3 files changed

+571
-1067
lines changed

.storybook/main.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ import type { StorybookConfig } from "@storybook/nextjs";
22

33
const config: StorybookConfig = {
44
stories: ["../components/**/*.stories.@(js|jsx|ts|tsx)"],
5+
56
addons: [
67
"@storybook/addon-onboarding",
78
"@storybook/addon-essentials",
89
"@chromatic-com/storybook",
910
"@storybook/addon-interactions",
1011
],
12+
1113
framework: {
1214
name: "@storybook/nextjs",
1315
options: {},
1416
},
17+
1518
webpackFinal: (config: any = { module: { rules: [] } }) => {
1619
if (!config.module?.rules) {
1720
config.module = { rules: [] };
@@ -44,6 +47,14 @@ const config: StorybookConfig = {
4447

4548
return config;
4649
},
50+
51+
docs: {
52+
autodocs: true
53+
},
54+
55+
typescript: {
56+
reactDocgen: "react-docgen-typescript"
57+
}
4758
};
4859

4960
export default config;

0 commit comments

Comments
 (0)