Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Layout component #103

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/Layout/Layout.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.layout {
/* Add your styles here */
}
14 changes: 14 additions & 0 deletions src/components/Layout/Layout.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Meta, StoryObj } from "@storybook/react";
import Layout from "./Layout";

const meta = {
component: Layout,
} satisfies Meta<typeof Layout>;

export default meta;

export const Default: StoryObj<typeof meta> = {
args: {
// Add default props here
},
};
8 changes: 8 additions & 0 deletions src/components/Layout/Layout.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { render, screen } from "@testing-library/react";
import { expect, test } from "vitest";
import Layout from "./Layout";

test("renders Layout component", () => {
render(<Layout />);
expect(screen.getByText("Layout")).toBeInTheDocument();
});
13 changes: 13 additions & 0 deletions src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import style from "./Layout.module.css";

interface LayoutProps {
// Define your props here
}

export default function Layout(props: LayoutProps) {
return (
<div className={style.layout}>
<p>Layout</p>
</div>
);
}
Loading