Skip to content

Commit b4de1c0

Browse files
committed
Use storybook default template
1 parent 4f77055 commit b4de1c0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

packages/tagging/src/stories/TaggingStoryComponent.stories.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ import { storiesOf } from '@storybook/react';
33
import TaggingStoryComponent from '../components/InnerComponents/TaggingStoryComponent';
44
import { name } from '../../package.json';
55
import './index.scss';
6+
import { withInfo } from '@storybook/addon-info';
7+
import { defaultTemplate, inlineTemplate } from 'storybook/decorators/storyTemplates';
68

7-
storiesOf(`${name}/Tagging`, module).add('Tagging example', () => (
8-
<TaggingStoryComponent />
9-
));
9+
const stories = storiesOf(`${name}/Tagging`, module);
10+
stories.addDecorator(
11+
defaultTemplate({
12+
title: 'Tagging',
13+
description:
14+
'This is an example of the Tagging component.'
15+
})
16+
);
17+
18+
stories.addWithInfo('TaggingStoryComponent', () => <TaggingStoryComponent />);

0 commit comments

Comments
 (0)