storybook/docs/snippets/angular/button-story-with-args.ts.mdx
2021-02-02 00:50:49 +00:00

18 lines
272 B
Plaintext

```ts
//Button.stories.ts
import { Story } from '@storybook/angular/types-6-0';
const Template: Story<Button> = (args) => ({
component: Button,
props: args,
});
export const Primary = Template.bind({});
Primary.args = {
primary: true,
label: 'Primary',
};
```