Skip to content

Commit

Permalink
upgrading storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-figma committed Jun 14, 2024
1 parent 7be7b5a commit 7ed86b6
Show file tree
Hide file tree
Showing 4 changed files with 1,111 additions and 1,086 deletions.
12 changes: 9 additions & 3 deletions .storybook/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ const config: StorybookConfig = {
"../src/stories/**/*.mdx",
"../src/stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],

framework: {
name: "@storybook/react-vite",
options: {},
},
docs: {
autodocs: true,
},

docs: {},

viteFinal: async (config) => {
if (config.resolve) {
config.resolve.alias = {
Expand All @@ -34,5 +36,9 @@ const config: StorybookConfig = {

return config;
},

typescript: {
reactDocgen: "react-docgen-typescript"
}
};
export default config;
2 changes: 2 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const preview: Preview = {
theme: theme,
},
},

tags: ["autodocs", "autodocs"]
};

export default preview;
Loading

0 comments on commit 7ed86b6

Please sign in to comment.