diff --git a/stories/Footer.stories.tsx b/stories/Footer.stories.tsx new file mode 100644 index 00000000..62f2740c --- /dev/null +++ b/stories/Footer.stories.tsx @@ -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; + +export default meta; +type Story = StoryObj; + +export const Default: Story = { + name: "Footer", + render: () => ( +
+ content +
Test footer
+
+ ), +}; diff --git a/stories/Header.stories.tsx b/stories/Header.stories.tsx new file mode 100644 index 00000000..76601d4c --- /dev/null +++ b/stories/Header.stories.tsx @@ -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; + +export default meta; +type Story = StoryObj; + +export const Default: Story = { + name: "Header", + render: () => ( +
+
Test Header
+
+ ), +}; diff --git a/stories/Wrapper.stories.tsx b/stories/Wrapper.stories.tsx new file mode 100644 index 00000000..27527dbb --- /dev/null +++ b/stories/Wrapper.stories.tsx @@ -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; + +export default meta; +type Story = StoryObj; + +export const Default: Story = { + name: "Wrapper", + render: () => ( +
+ + Left Wrapper + + + + Right Wrapper + +
+ ), +};