Tom Coleman 427ec4433d Rename docsPage to autodocs
And change semantics: `docsPage:true` = `autodocs: 'tag'` and `docsPage: 'automatic'` = `autodocs: true`.
2022-12-21 21:49:57 +11:00

24 lines
614 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 Autodocs entry: https://storybook.js.org/docs/7.0/web-components/writing-docs/docs-page
tags: ['autodocs'],
render: (args: HeaderProps) => Header(args),
};
export default meta;
type Story = StoryObj<HeaderProps>;
export const LoggedIn: Story = {
args: {
user: {
name: 'Jonh Doe',
},
},
};
export const LoggedOut: Story = {};