123456789101112131415161718192021222324252627 |
- import { createHeader } from './Header';
- export default {
- title: 'Example/Header',
- parameters: {
- // More on Story layout: https://storybook.js.org/docs/html/configure/story-layout
- layout: 'fullscreen',
- },
- // More on argTypes: https://storybook.js.org/docs/html/api/argtypes
- argTypes: {
- onLogin: { action: 'onLogin' },
- onLogout: { action: 'onLogout' },
- onCreateAccount: { action: 'onCreateAccount' },
- },
- };
- const Template = (args) => createHeader(args);
- export const LoggedIn = Template.bind({});
- LoggedIn.args = {
- user: {
- name: 'Jane Doe',
- },
- };
- export const LoggedOut = Template.bind({});
- LoggedOut.args = {};
|