mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:02:00 +08:00
26 lines
462 B
Plaintext
26 lines
462 B
Plaintext
```md
|
|
<!-- Button.stories.mdx -->
|
|
|
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
|
|
import Page from './page.component.ts';
|
|
|
|
<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>
|
|
``` |