storybook/docs/snippets/angular/component-story-mdx-story-by-name.mdx.mdx
2021-10-11 23:50:18 +01:00

18 lines
352 B
Plaintext

```md
<!-- Button.stories.mdx --->
import { Story } from '@storybook/addon-docs';
import { Button } from './button.component';
<!-- Render functions are a framework specific feature to allow you control on how the component renders -->
<Story
name="Basic"
args={{
label: 'hello'
}}
render={(args) => ({
props: args,
})} />
```