import type { StorybookConfig } from '@storybook/react/types'; const config: StorybookConfig = { stories: [{ directory: './src', titlePrefix: 'Demo' }], logLevel: 'debug', addons: [ '@storybook/react', '@storybook/addon-essentials', '@storybook/addon-storysource', '@storybook/addon-storyshots', ], typescript: { check: true, checkOptions: {}, reactDocgenTypescriptOptions: { propFilter: (prop) => ['label', 'disabled'].includes(prop.name), }, }, core: { builder: 'webpack4', }, features: { postcss: false, previewCsfV3: true, // buildStoriesJson: true, modernInlineRender: true, }, }; module.exports = config;