Skip to content

Commit

Permalink
updates per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed Aug 11, 2020
1 parent 714076b commit 5bddd6f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docs/snippets/common/badge-story.mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!---Badge.stories.mdx --->

<!--- This is your Story template function, shown here in React -->


import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';

Expand All @@ -11,6 +11,8 @@ import { Icon } from './Icon';

<Meta title="MDX/Badge" component={Badge} />

<!--- This is your Story template function, shown here in React -->

export const Template = (args) => <Badge {...args } />

# Badge
Expand Down
4 changes: 3 additions & 1 deletion docs/snippets/common/checkbox-story.mdx.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```md
<!--- Checkbox.stories.mdx -->

<!--- This is your Story template function, shown here in React -->


import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Checkbox } from './Checkbox';
Expand All @@ -13,6 +13,8 @@ import { Checkbox } from './Checkbox';
With `MDX` we can define a story for `Checkbox` right in the middle of our
Markdown documentation.

<!--- This is your Story template function, shown here in React -->

export const Template = (args) => <Checkbox {...args} />

<Canvas>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
```md
<!-- Button.stories.mdx --->

<!--- This is your Story template function, shown here in React -->

import { Story } from '@storybook/addon-docs/blocks';
import { Button } from './Button';

<!--- This is your Story template function, shown here in React -->

export const Template = (args) => <Button {...args} />;

<Story name="Basic" args={{ label: ‘hello’ }}>
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/common/mdx-canvas-multiple-stories.mdx.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
```md
<!-- MyComponent.stories.mdx --->

<!--- This is your Story template function, shown here in React -->

import { Canvas } from '@storybook/addon-docs/blocks';

<!--- This is your Story template function, shown here in React -->

export const Template = (args) => <Badge {...args } />;

<Canvas>
Expand Down

0 comments on commit 5bddd6f

Please sign in to comment.