You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
932 B

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. import type { StorybookConfig } from '@storybook/nextjs';
  2. const config: StorybookConfig = {
  3. stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
  4. addons: [
  5. '@storybook/addon-onboarding',
  6. '@storybook/addon-links',
  7. '@storybook/addon-essentials',
  8. '@chromatic-com/storybook',
  9. '@storybook/addon-interactions',
  10. {
  11. name: '@storybook/addon-postcss',
  12. options: {
  13. cssLoaderOptions: {
  14. // When you have splitted your css over multiple files
  15. // and use @import('./other-styles.css')
  16. importLoaders: 1,
  17. },
  18. postcssLoaderOptions: {
  19. // When using postCSS 8
  20. implementation: require('postcss'),
  21. },
  22. },
  23. },
  24. '@storybook/addon-mdx-gfm'
  25. ],
  26. framework: {
  27. name: '@storybook/nextjs',
  28. options: {},
  29. },
  30. docs: {
  31. autodocs: 'tag',
  32. },
  33. staticDirs: ['..\\public'],
  34. };
  35. export default config;