-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.stories.tsx
More file actions
88 lines (83 loc) · 1.69 KB
/
index.stories.tsx
File metadata and controls
88 lines (83 loc) · 1.69 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
import Sidebar from '#ui/Containers/Sidebar';
type Story = StoryObj<typeof Sidebar>;
type Meta = MetaObj<typeof Sidebar>;
const args = {
groups: [
{
groupName: 'About Node.js',
items: [
{
link: '/item1',
label: 'About Node.js',
},
{
link: '/item2',
label: 'Project Governance',
},
{
link: '/item3',
label: 'Releases',
},
{
link: '/item4',
label: 'Branding',
},
{
link: '/item5',
label: 'Privacy Policy',
},
{
link: '/item6',
label: 'Security Reporting',
},
],
},
{
groupName: 'Get Involved',
items: [
{
link: '/item7',
label: 'Get Involved',
},
{
link: '/item8',
label: 'Collab Summit',
},
{
link: '/item9',
label: 'Contribute',
},
{
link: '/item10',
label: 'Code of Conduct',
},
],
},
{
groupName: 'Download',
items: [
{
link: '/item11',
label: 'Download',
},
{
link: '/item12',
label: 'Package Manager',
},
{
link: '/item13',
label: 'Node.js Releases',
},
],
},
],
title: 'Sidebar',
onSelect: console.log,
pathname: '/item1',
};
export const Default: Story = { args };
export const Progression: Story = {
args: { ...args, showProgressionIcons: true },
};
export default { component: Sidebar } as Meta;