Skip to content

Commit

Permalink
OPHJOD-1010: Update storybook to 8.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaniko committed Nov 5, 2024
1 parent 2c62987 commit b996c39
Show file tree
Hide file tree
Showing 4 changed files with 4,582 additions and 4,470 deletions.
10 changes: 10 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,33 @@ const config: StorybookConfig = {
titlePrefix: 'Components',
},
],

addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@storybook/addon-themes',
'@storybook/addon-designs',
'@storybook/addon-mdx-gfm',
'@chromatic-com/storybook',
],

framework: {
name: '@storybook/react-vite',
options: {},
},

core: {
disableTelemetry: true,
},

docs: {
defaultName: 'Documentation',
},

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

decorators: [
withThemeByClassName<ReactRenderer>({
themes: {
Expand All @@ -67,6 +68,8 @@ const preview: Preview = {
defaultTheme: 'light',
}),
],

tags: ['autodocs'],
};

export default preview;
Loading

0 comments on commit b996c39

Please sign in to comment.