-
Notifications
You must be signed in to change notification settings - Fork 2
/
Button.stories.tsx
50 lines (43 loc) · 974 Bytes
/
Button.stories.tsx
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
import type { Meta, StoryObj } from '@storybook/react';
import Button from '@renderer/components/papi-components/Button';
const meta: Meta<typeof Button> = {
title: 'Basics/Button',
component: Button,
tags: ['autodocs'],
argTypes: {
isDisabled: { control: 'boolean' },
},
};
export default meta;
type Story = StoryObj<typeof Button>;
export const Primary: Story = {
args: {
isDisabled: false,
children: 'Primary Button',
},
};
export const CustomJSXContents: Story = {
args: {
isDisabled: false,
className: 'video',
children: (
<a href="https://www.youtube.com/watch?v=z_lgjFAxP6c">
Funny Meeting Video
</a>
),
},
};
export const Paratext: Story = {
args: {
isDisabled: false,
className: 'paratext',
children: 'Paratext Button',
},
};
export const ParatextBright: Story = {
args: {
isDisabled: false,
className: 'paratext bright',
children: 'Paratext Button',
},
};