-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.stories.tsx
More file actions
38 lines (33 loc) · 882 Bytes
/
index.stories.tsx
File metadata and controls
38 lines (33 loc) · 882 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
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
import BaseCrossLink from '#ui/Common/BaseCrossLink';
type Story = StoryObj<typeof BaseCrossLink>;
type Meta = MetaObj<typeof BaseCrossLink>;
export const Prev: Story = {
args: {
type: 'previous',
text: 'How to install Node.js',
link: 'https://nodejs.dev/en/learn/how-to-install-nodejs/',
},
decorators: [
Story => (
<div className="w-[305px]">
<Story />
</div>
),
],
};
export const Next: Story = {
args: {
type: 'next',
text: 'How much JavaScript do you need to know to use Node.js?',
link: 'https://nodejs.dev/en/learn/how-much-javascript-do-you-need-to-know-to-use-nodejs/',
},
decorators: [
Story => (
<div className="w-[305px]">
<Story />
</div>
),
],
};
export default { component: BaseCrossLink } as Meta;