Skip to content

Commit

Permalink
Run storybook upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
francisli committed Nov 28, 2024
1 parent 1962095 commit 219f0fd
Show file tree
Hide file tree
Showing 4 changed files with 958 additions and 2,252 deletions.
7 changes: 7 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { StorybookConfig } from "@storybook/nextjs";
const config: StorybookConfig = {
staticDirs: ["../public"],
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
Expand All @@ -11,10 +12,16 @@ const config: StorybookConfig = {
"@tomfreudenberg/next-auth-mock/storybook",
"@chromatic-com/storybook",
],

framework: {
name: "@storybook/nextjs",
options: {},
},

docs: {},

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

decorators: [
(Story) => (
<FontProvider>
Expand All @@ -27,6 +28,8 @@ const preview: Preview = {
</FontProvider>
),
],

tags: ["autodocs"],
};

export default preview;
Loading

0 comments on commit 219f0fd

Please sign in to comment.