storybook/docs/snippets/angular/component-story-mdx-story-by-name.mdx.mdx
2021-11-04 18:03:37 +00:00

15 lines
315 B
Plaintext

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