Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sounmind committed Nov 30, 2024
1 parent 47bafc4 commit 8d74613
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
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>
);
}

0 comments on commit 8d74613

Please sign in to comment.