Skip to content

Commit

Permalink
convert-mdx-to-module: story decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jul 19, 2019
1 parent ace6e72 commit f9b9a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import { Meta, Story } from '@storybook/addon-docs/blocks';
title='Some.Button'
decorators={[withKnobs, storyFn => <div className='foo'>{storyFn}</div>]} />

<Story name='with decorator'><Button label='The Button' /></Story>
<Story name='with decorator' decorators={[withKnobs]}><Button label='The Button' /></Story>
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export const withDecorator = () => <Button label="The Button" />;

withDecorator.story = {
name: 'with decorator',
decorators: [withKnobs],
};

0 comments on commit f9b9a91

Please sign in to comment.