mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:12:03 +08:00
26 lines
460 B
Plaintext
26 lines
460 B
Plaintext
```md
|
|
<!-- Page.stories.mdx -->
|
|
|
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
|
|
import { Page } from './page.component';
|
|
|
|
<Meta title="Page" component={Page} />
|
|
|
|
export const Template = (args) => ({
|
|
props: args,
|
|
template:`
|
|
<storybook-page>
|
|
<ng-container footer>${args.footer}</ng-container>
|
|
</storybook-page>
|
|
`,
|
|
});
|
|
|
|
<Story
|
|
name="CustomFooter"
|
|
args={{
|
|
footer: 'Built with Storybook',
|
|
}}>
|
|
{Template.bind({})}
|
|
</Story>
|
|
``` |