Skip to content

Commit b28e4e6

Browse files
authored
docs(): Update storybook to v8. (#40)
* Run update script. * fix(): Add storybook plugin. * fix(): Remove regex.
1 parent c92f36b commit b28e4e6

File tree

4 files changed

+6351
-13722
lines changed

4 files changed

+6351
-13722
lines changed

.storybook/main.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
const config = {
22
stories: ["../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
3+
34
addons: [
45
"@storybook/addon-links",
56
"@storybook/addon-essentials",
67
"@storybook/addon-onboarding",
78
"@storybook/addon-interactions",
9+
"@chromatic-com/storybook"
810
],
11+
912
framework: {
1013
name: "@storybook/react-vite",
1114
options: {},
1215
},
13-
docs: {
14-
autodocs: "tag",
15-
},
16+
17+
docs: {},
18+
1619
staticDirs: ["../dist"],
20+
21+
typescript: {
22+
reactDocgen: "react-docgen-typescript"
23+
}
1724
};
1825
export default config;

.storybook/preview.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import "./styles.css";
33

44
const preview = {
55
parameters: {
6-
actions: { argTypesRegex: "^on[A-Z].*" },
76
controls: {
87
matchers: {
98
color: /(background|color)$/i,

0 commit comments

Comments
 (0)