2022-10-31 10:59:17 +01:00

36 lines
809 B
TypeScript

import { moduleMetadata } from '@storybook/angular';
import { CommonModule } from '@angular/common';
import type { Meta, StoryFn } from '@storybook/angular';
import Button from './button.component';
import Header from './header.component';
export default {
title: 'Example/Header',
component: Header,
decorators: [
moduleMetadata({
declarations: [Button],
imports: [CommonModule],
}),
],
parameters: {
// More on Story layout: https://storybook.js.org/docs/angular/configure/story-layout
layout: 'fullscreen',
},
} as Meta;
const Template: StoryFn<Header> = (args: Header) => ({
props: args,
});
export const LoggedIn = Template.bind({});
LoggedIn.args = {
user: {
name: 'Jane Doe',
},
};
export const LoggedOut = Template.bind({});
LoggedOut.args = {};