storybook/docs/snippets/react/page-story-slots.mdx.mdx
2021-11-03 23:31:14 +00:00

24 lines
379 B
Plaintext

```md
<!-- Page.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { Page } from './Page';
<Meta title="Page" component={Page} />
export const Template = (args) => (
<Page {...args}>
<footer>{args.footer}</footer>
</Page>
);
<Story
name="CustomFooter"
args={{
footer: 'Built with Storybook',
}}>
{Template.bind({})}
</Story>
```