storybook/docs/snippets/angular/page-story-slots.ts.mdx
2021-04-09 13:40:17 +02:00

26 lines
479 B
Plaintext

```ts
// Page.stories.ts
import { Meta, Story } from '@storybook/angular/types-6-0';
import Page from './page.component';
export default {
component: Page,
title: 'Page',
} as Meta;
const Template: Story<Page> = (args) => ({
props: args,
template: `
<storybook-page>
<ng-container footer>${args.footer}</ng-container>
</storybook-page>`,
});
export const CustomFooter = Template.bind({});
CustomFooter.args = {
footer: 'Built with Storybook',
};
```