-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.stories.tsx
More file actions
79 lines (75 loc) · 2.02 KB
/
index.stories.tsx
File metadata and controls
79 lines (75 loc) · 2.02 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
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
import ProgressionSidebar from '#ui/Common/ProgressionSidebar';
type Story = StoryObj<typeof ProgressionSidebar>;
type Meta = MetaObj<typeof ProgressionSidebar>;
export const Default: Story = {
args: {
groups: [
{
groupName: 'Getting Started',
items: [
{
label: 'Introduction to Node.js',
link: '/',
},
{
label: 'How to install Node.js',
link: '/how-to-install-nodejs',
},
{
label: 'How much JavaScript do you need to know to use Node.js?',
link: '/how-much-javascript-do-you-need-to-know-to-use-nodejs',
},
{
label: 'Differences between Node.js and the Browser',
link: '/differences-between-nodejs-and-the-browser',
},
{
label: 'The V8 JavaScript Engine',
link: '/the-v8-javascript-engine',
},
{
label: 'An introduction to the npm package manager',
link: '/an-introduction-to-the-npm-package-manager',
},
],
},
{
groupName: 'Asynchronous Work',
items: [
{
label: 'Asynchronous flow control',
link: '/asynchronous-flow-control',
},
{
label: 'Overview of Blocking vs Non-Blocking',
link: '/overview-of-blocking-vs-non-blocking',
},
],
},
{
groupName: 'Manipulating Files',
items: [
{
label: 'Node.js file stats',
link: '/nodejs-file-stats',
},
{
label: 'Node.js File Paths',
link: '/nodejs-file-paths',
},
],
},
{
groupName: 'Single item',
items: [
{
label: 'Item',
link: '/item',
},
],
},
],
},
};
export default { component: ProgressionSidebar } as Meta;