File tree Expand file tree Collapse file tree 3 files changed +571
-1067
lines changed
Expand file tree Collapse file tree 3 files changed +571
-1067
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,19 @@ import type { StorybookConfig } from "@storybook/nextjs";
22
33const 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
4960export default config ;
You can’t perform that action at this time.
0 commit comments