mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
23 lines
366 B
Plaintext
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>`,
|
|
}),
|
|
};
|
|
```
|