storybook/docs/snippets/angular/page-story-slots.mdx.mdx
2022-07-07 19:05:48 +01:00

23 lines
429 B
Plaintext

```md
<!-- Page.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { Page } from './page.component';
<Meta title="Page" component={Page} />
<Story
name="CustomFooter"
args={{
footer: 'Built with Storybook',
}}
render={(args) => ({
props: args,
template:`
<storybook-page>
<ng-container footer>${args.footer}</ng-container>
</storybook-page>
`,
})} />
```