Skip to content

Commit

Permalink
test: add Layout to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 9, 2024
1 parent 1a6f04a commit 00d402e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions src/v2/components/Layout/Layout.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { Meta, StoryFn } from "@storybook/react"
import { Layout } from "."

const meta: Meta = {
title: 'Design system/Layout',
parameters: {
layout: 'fullscreen'
}
}

export default meta

export const Static: StoryFn = () => (
<Layout.Root>
<Layout.Header>
<Layout.Banner />
<Layout.Headline title='Layout title' />
</Layout.Header>
<Layout.Main>
Page contents
</Layout.Main>
<Layout.Footer />
</Layout.Root>
)
3 changes: 2 additions & 1 deletion src/v2/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { ReactNode } from "react"
import { PropsWithChildren } from "react"
import { PageBoundary } from "@/components/PageBoundary"
import { Header as NavHeader } from "@/components/Header"
// import { Header as NavHeader } from "@/components/Header"
const NavHeader = () => <div className="h-16 border-border border-b">mocked header</div>

/* -------------------------------------------------------------------------------------------------
* Root
Expand Down

0 comments on commit 00d402e

Please sign in to comment.