storybook/docs/snippets/vue/page-story.js.mdx
2020-10-18 22:55:40 +02:00

22 lines
394 B
Plaintext

```js
// Page.stories.js
import Page from './Page.vue';
import * as HeaderStories from './Header.stories';
export default {
title: 'Page',
};
const Template = (args, { argTypes }) => ({
components: { Page },
props: Object.keys(argTypes),
template: '<page v-bind="$props" />',
});
export const LoggedIn = Template.bind({});
LoggedIn.args = {
...HeaderStories.LoggedIn.args,
};
```