storybook/docs/snippets/angular/button-story-with-args.mdx.mdx
2021-08-09 19:19:01 +01:00

20 lines
353 B
Plaintext

```md
<!-- Button.stories.mdx-->
import { Meta, Story } from '@storybook/addon-docs';
import Button from './button.component';
<Meta title="Components/Button" component={Button} />
export const Template = (args) => ({ props: args });
<Story
name="Primary"
args={{
primary: true,
label: 'Button',
}}>
{Template.bind({})}
</Story>
```