storybook/docs/snippets/react/page-story-slots.js.mdx
2021-09-03 23:31:04 +01:00

23 lines
330 B
Plaintext

```js
// Page.stories.js | Page.stories.jsx
import React from 'react';
import { Page } from './Page';
export default {
component: Page,
};
export const CustomFooter = {
args: {
footer: 'Built with Storybook',
},
render: (args) => (
<Page {...args}>
<footer>{args.footer}</footer>
</Page>
),
};
```