d31ced1d26
Updates the `with-storybook` example to be the example located in [`vercel/vercel`](https://github.com/vercel/vercel/tree/main/examples/storybook). The motivation for this change is that we now have better support for storybook. It is now treated as its own framework and so users can specify the `storybook` framework as well as custom build command `build-storybook` in order to get near zero-config support 🌟 Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
26 lines
666 B
TypeScript
26 lines
666 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react'
|
|
import { Header } from './Header'
|
|
|
|
const meta: Meta<typeof Header> = {
|
|
title: 'Example/Header',
|
|
component: Header,
|
|
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
tags: ['autodocs'],
|
|
parameters: {
|
|
// More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout
|
|
layout: 'fullscreen',
|
|
},
|
|
}
|
|
|
|
export default meta
|
|
type Story = StoryObj<typeof Header>
|
|
|
|
export const LoggedIn: Story = {
|
|
args: {
|
|
user: {
|
|
name: 'Jane Doe',
|
|
},
|
|
},
|
|
}
|
|
|
|
export const LoggedOut: Story = {}
|