24 lines
597 B
TypeScript

import type { Meta, StoryObj } from '@storybook/web-components';
import type { HeaderProps } from './Header';
import { Header } from './Header';
const meta: Meta<HeaderProps> = {
title: 'Example/Header',
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/web-components/writing-docs/docs-page
tags: ['docsPage'],
render: (args) => Header(args),
};
export default meta;
type Story = StoryObj<HeaderProps>;
export const LoggedIn: Story = {
args: {
user: {
name: 'Jonh Doe',
},
},
};
export const LoggedOut: Story = {};