storybook/docs/snippets/angular/page-story-slots.ts.mdx
2021-09-03 23:31:04 +01:00

23 lines
366 B
Plaintext

```ts
// Page.stories.ts
import { Page } from './page.component';
export default {
component: Page,
};
export const CustomFooter = {
args: {
footer: 'Built with Storybook',
},
render: (args) => ({
props: args,
template: `
<storybook-page>
<ng-container footer>${args.footer}</ng-container>
</storybook-page>`,
}),
};
```