diff --git a/apps/native-ui-storybook/.storybook/main.ts b/apps/native-ui-storybook/.storybook/main.ts index ee9104e8f..8614a838e 100644 --- a/apps/native-ui-storybook/.storybook/main.ts +++ b/apps/native-ui-storybook/.storybook/main.ts @@ -1,4 +1,4 @@ -import { dirname, join } from "path"; +import { dirname, join } from 'path'; const path = require('path'); /** @type{import("@storybook/react-webpack5").StorybookConfig} */ module.exports = { @@ -8,17 +8,17 @@ module.exports = { '../components/**/*.stories.@(js|jsx|ts|tsx)', ], addons: [ - getAbsolutePath("@storybook/addon-links"), - getAbsolutePath("@storybook/addon-essentials"), - getAbsolutePath("@storybook/addon-react-native-web"), - getAbsolutePath("@storybook/addon-mdx-gfm") + getAbsolutePath('@storybook/addon-links'), + getAbsolutePath('@storybook/addon-essentials'), + getAbsolutePath('@storybook/addon-react-native-web'), + getAbsolutePath('@storybook/addon-mdx-gfm'), ], framework: { - name: getAbsolutePath("@storybook/react-webpack5"), + name: getAbsolutePath('@storybook/react-webpack5'), options: {}, }, docs: { - autodocs: true, + autodocs: 'tag', }, webpackFinal: async config => { config.resolve.alias = { @@ -31,5 +31,5 @@ module.exports = { }; function getAbsolutePath(value: string): any { - return dirname(require.resolve(join(value, "package.json"))); + return dirname(require.resolve(join(value, 'package.json'))); } diff --git a/apps/native-ui-storybook/components/Alert/Alert.stories.tsx b/apps/native-ui-storybook/components/Alert/Alert.stories.tsx index 788bd31af..330b0712a 100644 --- a/apps/native-ui-storybook/components/Alert/Alert.stories.tsx +++ b/apps/native-ui-storybook/components/Alert/Alert.stories.tsx @@ -4,6 +4,7 @@ import Variants from './Variants'; const AlertMeta: Meta = { title: 'components/Alert', + tags: ['autodocs'], component: Alert, // metaInfo is required for figma generation // @ts-ignore diff --git a/apps/native-ui-storybook/components/Badge/Badge.stories.tsx b/apps/native-ui-storybook/components/Badge/Badge.stories.tsx index 50645637d..a4d62225a 100644 --- a/apps/native-ui-storybook/components/Badge/Badge.stories.tsx +++ b/apps/native-ui-storybook/components/Badge/Badge.stories.tsx @@ -3,6 +3,7 @@ import Badge from './Badge'; const BadgeMeta: Meta = { title: 'components/Badge', + tags: ['autodocs'], component: Badge, // metaInfo is required for figma generation // @ts-ignore