storybook/docs/snippets/react/page-story-slots.mdx.mdx

23 lines
452 B
Plaintext

```md
<!-- Page.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { Page } from './Page';
<Meta title="Page" component={Page} />
<!-- Render functions are a framework specific feature to allow you control on how the component renders -->
<Story
name="CustomFooter"
args={{
footer: 'Built with Storybook',
}}
render={(args) => (
<Page {...args}>
<footer>{args.footer}</footer>
</Page>
)}/>
```