Skip to content

Commit

Permalink
Merge pull request #12483 from Jimmydalecleveland/patch-4
Browse files Browse the repository at this point in the history
Update addon controls readme from incorrect syntax
  • Loading branch information
shilman authored Sep 15, 2020
2 parents 4186b8e + ede593a commit ecaa84c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/controls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ Here's the MDX equivalent:
import { Meta, Story } from '@storybook/addon-docs/blocks';
import { Button } from './Button';

<Meta title="Button" component={Button} argTypes={{ background: { control: 'color' } }} />;
<Meta title="Button" component={Button} argTypes={{ background: { control: 'color' } }} />

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

<Story name="Basic" args={{ label: 'hello', background: '#ff0' }}>
{Template.bind({})}
</Story>;
</Story>
```

For more info, see a full [Controls example in MDX for Vue](https://raw.githubusercontent.com/storybookjs/storybook/next/examples/vue-kitchen-sink/src/stories/addon-controls.stories.mdx).

0 comments on commit ecaa84c

Please sign in to comment.