storybook/docs/snippets/vue/page-story.3.js.mdx
2021-02-24 17:56:50 +00:00

26 lines
404 B
Plaintext

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