Skip to content

Commit

Permalink
Merge pull request #22982 from storybookjs/norbert/add-template-to-ma…
Browse files Browse the repository at this point in the history
…in-storybook

Build: Add template stories to our main storybook
  • Loading branch information
ndelangen authored Jun 9, 2023
2 parents 12295b7 + d7916ef commit 860a488
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions code/ui/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,30 @@ const allStories = [
directory: '../blocks/src',
titlePrefix: '@storybook-blocks',
},
{
directory: '../../addons/interactions/template/stories',
titlePrefix: '@storybook-addon/interactions',
},
{
directory: '../../addons/actions/template/stories',
titlePrefix: '@storybook-addon/actions',
},
{
directory: '../../addons/a11y/template/stories',
titlePrefix: '@storybook-addon/accessibility',
},
{
directory: '../../addons/controls/template/stories',
titlePrefix: '@storybook-addon/controls',
},
{
directory: '../../addons/docs/template/stories',
titlePrefix: '@storybook-addon/docs',
},
{
directory: '../../addons/viewport/template/stories',
titlePrefix: '@storybook-addon/viewport',
},
];

/**
Expand Down Expand Up @@ -48,6 +72,7 @@ const config: StorybookConfig = {
stories: isBlocksOnly ? blocksOnlyStories : allStories,
addons: [
'@storybook/addon-links',
'@storybook/addon-a11y',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-storysource',
Expand Down
2 changes: 2 additions & 0 deletions code/ui/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { DocsContext } from '@storybook/blocks';

import { DocsPageWrapper } from '../blocks/src/components';

import '../../renderers/react/template/components/index';

const { document } = global;

const ThemeBlock = styled.div<{ side: 'left' | 'right' }>(
Expand Down

0 comments on commit 860a488

Please sign in to comment.