-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a1753b
commit 1a6f4e9
Showing
3 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { Footer } from "../src/main"; | ||
|
||
const meta = { | ||
title: "Components/Footer", | ||
component: Footer, | ||
args: { | ||
className: "test-class", | ||
}, | ||
argTypes: { | ||
className: { | ||
control: false, | ||
description: "Additional classes to be applied to the header.", | ||
}, | ||
}, | ||
parameters: { layout: "centered" }, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof Footer>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
name: "Footer", | ||
render: () => ( | ||
<div style={{ width: "900px" }}> | ||
<span>content</span> | ||
<Footer>Test footer</Footer> | ||
</div> | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { Header } from "../src/main"; | ||
|
||
const meta = { | ||
title: "Components/Header", | ||
component: Header, | ||
args: { | ||
className: "test-class", | ||
}, | ||
argTypes: { | ||
className: { | ||
control: false, | ||
description: "Additional classes to be applied to the header.", | ||
}, | ||
}, | ||
parameters: { layout: "centered" }, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof Header>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
name: "Header", | ||
render: () => ( | ||
<div style={{ width: "900px" }}> | ||
<Header>Test Header</Header> | ||
</div> | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { Wrapper } from "../src/main"; | ||
|
||
const meta = { | ||
title: "Components/Wrapper", | ||
component: Wrapper, | ||
args: { | ||
className: "test-class", | ||
variant: "left", | ||
}, | ||
argTypes: { | ||
className: { | ||
control: false, | ||
description: "Additional classes to be applied to the header.", | ||
}, | ||
variant: { | ||
options: ["left", "right"], | ||
control: { type: "radio" }, | ||
}, | ||
}, | ||
parameters: { layout: "centered" }, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof Wrapper>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
name: "Wrapper", | ||
render: () => ( | ||
<div style={{ display: "flex", width: "900px" }}> | ||
<Wrapper variant="left" style={{ backgroundColor: "orange" }}> | ||
Left Wrapper | ||
</Wrapper> | ||
|
||
<Wrapper variant="right" style={{ backgroundColor: "pink" }}> | ||
Right Wrapper | ||
</Wrapper> | ||
</div> | ||
), | ||
}; |