-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.stories.tsx
More file actions
44 lines (37 loc) · 918 Bytes
/
index.stories.tsx
File metadata and controls
44 lines (37 loc) · 918 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
40
41
42
43
44
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
import Preview from '#ui/Common/Preview';
type Story = StoryObj<typeof Preview>;
type Meta = MetaObj<typeof Preview>;
export const Announcement: Story = {
args: {
type: 'announcements',
title:
'Changing the End-of-Life Date for Node.js 16 to September 11th, 2023',
},
};
export const Release: Story = {
args: {
type: 'release',
title: 'Node v20.5.0 (Current)',
},
};
export const Vulnerability: Story = {
args: {
type: 'vulnerability',
title: 'OpenSSL update assessment, and Node.js project plans',
},
};
export const CustomSize: Story = {
args: {
title:
'Changing the End-of-Life Date for Node.js 16 to September 11th, 2023',
},
decorators: [
Story => (
<div className="w-[600px]">
<Story />
</div>
),
],
};
export default { component: Preview } as Meta;