Skip to content

Commit 8910b7e

Browse files
committed
add story
1 parent 0710aa4 commit 8910b7e

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
2+
3+
import Article from '.';
4+
5+
type Story = StoryObj<typeof Article>;
6+
type Meta = MetaObj<typeof Article>;
7+
8+
const Sidebar = () => (
9+
<div className="text-center">
10+
<h3>Sidebar</h3>
11+
<ul>
12+
<li>Navigation Item 1</li>
13+
<li>Navigation Item 2</li>
14+
<li>Navigation Item 3</li>
15+
<li>Navigation Item 4</li>
16+
</ul>
17+
</div>
18+
);
19+
20+
export const Default: Story = {
21+
args: {
22+
children: (
23+
<>
24+
<Sidebar />
25+
<div>
26+
<main>
27+
<p>
28+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
29+
eiusmod tempor incididunt ut labore et dolore magna aliqua.
30+
</p>
31+
</main>
32+
<Sidebar />
33+
</div>
34+
</>
35+
),
36+
},
37+
};
38+
39+
export default { component: Article } as Meta;

0 commit comments

Comments
 (0)