feat: structure
This commit is contained in:
+6
-2
@@ -4,6 +4,7 @@ import type { StorybookConfig } from 'storybook-react-rsbuild';
|
||||
const config: StorybookConfig = {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(ts|tsx)'],
|
||||
addons: ['@storybook/addon-docs'],
|
||||
staticDirs: ['../src/assets'],
|
||||
framework: {
|
||||
name: 'storybook-react-rsbuild',
|
||||
options: {},
|
||||
@@ -13,9 +14,12 @@ const config: StorybookConfig = {
|
||||
reactDocgen: 'react-docgen-typescript',
|
||||
reactDocgenTypescriptOptions: {
|
||||
shouldExtractLiteralValuesFromEnum: true,
|
||||
// Keep our own props; drop the noise inherited from node_modules.
|
||||
// Keep our own props + Radix primitives; drop other node_modules noise.
|
||||
propFilter: (prop) =>
|
||||
prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
|
||||
prop.parent
|
||||
? !/node_modules/.test(prop.parent.fileName) ||
|
||||
/node_modules\/radix-ui/.test(prop.parent.fileName)
|
||||
: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user