-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.stories.tsx
More file actions
39 lines (34 loc) · 843 Bytes
/
index.stories.tsx
File metadata and controls
39 lines (34 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
import Article from '.';
type Story = StoryObj<typeof Article>;
type Meta = MetaObj<typeof Article>;
const Sidebar = () => (
<div className="text-center">
<h3>Sidebar</h3>
<ul>
<li>Navigation Item 1</li>
<li>Navigation Item 2</li>
<li>Navigation Item 3</li>
<li>Navigation Item 4</li>
</ul>
</div>
);
export const Default: Story = {
args: {
children: (
<>
<Sidebar />
<div>
<main>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
</main>
<Sidebar />
</div>
</>
),
},
};
export default { component: Article } as Meta;